删除已迁移的代码
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
package cn.iocoder.mall.system.api;
|
||||
|
||||
import cn.iocoder.common.framework.vo.PageResult;
|
||||
import cn.iocoder.mall.system.api.bo.deptment.DeptmentBO;
|
||||
import cn.iocoder.mall.system.api.dto.depetment.DeptmentAddDTO;
|
||||
import cn.iocoder.mall.system.api.dto.depetment.DeptmentPageDTO;
|
||||
import cn.iocoder.mall.system.api.dto.depetment.DeptmentUpdateDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
*
|
||||
* @author: zhenxianyimeng
|
||||
* @date: 2019-06-14
|
||||
* @time: 19:35
|
||||
*/
|
||||
public interface DeptmentService {
|
||||
|
||||
DeptmentBO addDeptment(Integer adminId, DeptmentAddDTO deptmentAddDTO);
|
||||
|
||||
Boolean deleteDeptment(Integer adminId, Integer deptmentId);
|
||||
|
||||
Boolean updateDeptment(Integer adminId, DeptmentUpdateDTO deptmentUpdateDTO);
|
||||
|
||||
PageResult<DeptmentBO> getPageRootDeptment(DeptmentPageDTO deptmentPageDTO);
|
||||
|
||||
List<DeptmentBO> getAllDeptments();
|
||||
|
||||
List<DeptmentBO> getAllNotRootDeptment();
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package cn.iocoder.mall.system.api.bo.deptment;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
*
|
||||
* @author: zhenxianyimeng
|
||||
* @date: 2019-06-14
|
||||
* @time: 19:49
|
||||
*/
|
||||
@ApiModel("部门 BO")
|
||||
@Data
|
||||
public class DeptmentBO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7656901281539594453L;
|
||||
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 部门排序字段
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* 父级部门id
|
||||
*/
|
||||
private Integer pid;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
package cn.iocoder.mall.system.api.dto.depetment;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
*
|
||||
* @author: zhenxianyimeng
|
||||
* @date: 2019-06-14
|
||||
* @time: 19:55
|
||||
*/
|
||||
@ApiModel("添加部门 DTO")
|
||||
@Data
|
||||
public class DeptmentAddDTO {
|
||||
|
||||
@ApiModelProperty(value = "名字", required = true, example = "销售一组")
|
||||
@NotNull(message = "不能为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "排序", required = true, example = "1")
|
||||
@NotNull(message = "不能为空")
|
||||
private Integer sort;
|
||||
|
||||
@ApiModelProperty(value = "父级id", required = true, example = "1")
|
||||
@NotNull(message = "可以为空,默认0,顶层")
|
||||
@Min(value = 0,message = "父id不能小于0")
|
||||
private Integer pid = 0;
|
||||
|
||||
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package cn.iocoder.mall.system.api.dto.depetment;
|
||||
|
||||
import cn.iocoder.common.framework.vo.PageParam;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
|
||||
/**
|
||||
* Description:
|
||||
*
|
||||
* @author: zhenxianyimeng
|
||||
* @date: 2019-06-21
|
||||
* @time: 00:22
|
||||
*/
|
||||
@ApiModel(value = "部门分页 DTO")
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class DeptmentPageDTO extends PageParam {
|
||||
@ApiModelProperty(value = "根部门名字", example = "研发部")
|
||||
private String name;
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
package cn.iocoder.mall.system.api.dto.depetment;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
*
|
||||
* @author: zhenxianyimeng
|
||||
* @date: 2019-06-26
|
||||
* @time: 22:37
|
||||
*/
|
||||
@ApiModel("部门更新DTO")
|
||||
@Data
|
||||
public class DeptmentUpdateDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8905970407110374395L;
|
||||
|
||||
@ApiModelProperty(value = "部门id", required = true, example = "1")
|
||||
@NotNull(message = "部门id不能为空")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "部门名字", required = true, example = "销售部")
|
||||
@NotEmpty(message = "部门名字不为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "部门排序", required = true, example = "1")
|
||||
@NotNull(message = "部门排序不为空")
|
||||
private Integer sort;
|
||||
|
||||
@ApiModelProperty(value = "父级部门id", required = true, example = "1")
|
||||
private Integer pid;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user