7 changed files with 185 additions and 6 deletions
@ -0,0 +1,58 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.tduck.cloud.project.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.tduck.cloud.common.entity.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
/** |
|||
* 项目发布范围表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-15 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("pr_publish_range") |
|||
public class PrPublishRangeEntity extends BaseEntity<PrPublishRangeEntity> { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 项目key |
|||
*/ |
|||
private String projectKey; |
|||
|
|||
/** |
|||
* 范围组织ids,格式与组织维度一致 冒号隔开 即选中节点的全路径id |
|||
*/ |
|||
private String orgIds; |
|||
|
|||
/** |
|||
* 最后发布组织的ID |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 最后发布组织的类型;department,agency;grid |
|||
*/ |
|||
private String orgType; |
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.tduck.cloud.project.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.tduck.cloud.project.entity.PrPublishRangeEntity; |
|||
|
|||
/** |
|||
* 项目发布范围表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-15 |
|||
*/ |
|||
public interface PrPublishRangeMapper extends BaseMapper<PrPublishRangeEntity> { |
|||
|
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.tduck.cloud.project.request; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.tduck.cloud.common.validator.group.UpdateGroup; |
|||
import com.tduck.cloud.project.entity.PrPublishRangeEntity; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/23 15:01 |
|||
*/ |
|||
@Data |
|||
public class PublishProjectRequest { |
|||
@NotBlank(message = "项目Key不能为空", groups = {UpdateGroup.class}) |
|||
private String key; |
|||
@NotBlank(message = "发布范围不能为空", groups = {UpdateGroup.class}) |
|||
private String client; |
|||
private List<PrPublishRangeEntity> rangeList; |
|||
} |
@ -0,0 +1,32 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.tduck.cloud.project.service; |
|||
|
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.tduck.cloud.project.entity.PrPublishRangeEntity; |
|||
|
|||
/** |
|||
* 项目发布范围表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-15 |
|||
*/ |
|||
public interface PrPublishRangeService extends IService<PrPublishRangeEntity> { |
|||
|
|||
} |
@ -0,0 +1,36 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.tduck.cloud.project.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import com.tduck.cloud.project.entity.PrPublishRangeEntity; |
|||
import com.tduck.cloud.project.mapper.PrPublishRangeMapper; |
|||
import com.tduck.cloud.project.service.PrPublishRangeService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 项目发布范围表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-15 |
|||
*/ |
|||
@Service("prPublishRangeService") |
|||
public class PrPublishRangeServiceImpl extends ServiceImpl<PrPublishRangeMapper, PrPublishRangeEntity> implements PrPublishRangeService { |
|||
|
|||
|
|||
} |
Loading…
Reference in new issue