parent
b3322bf217
commit
68458fbfed
@ -0,0 +1,32 @@
|
|||||||
|
package cn.iocoder.mall.admin.application.convert;
|
||||||
|
|
||||||
|
import cn.iocoder.common.framework.vo.PageResult;
|
||||||
|
import cn.iocoder.mall.admin.api.bo.deptment.DeptmentBO;
|
||||||
|
import cn.iocoder.mall.admin.application.vo.deptment.DeptmentVO;
|
||||||
|
import cn.iocoder.mall.admin.dataobject.DeptmentDO;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
import org.mapstruct.Mapping;
|
||||||
|
import org.mapstruct.Mappings;
|
||||||
|
import org.mapstruct.factory.Mappers;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description:
|
||||||
|
*
|
||||||
|
* @author: zhenxianyimeng
|
||||||
|
* @date: 2019-06-22
|
||||||
|
* @time: 00:23
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeptmentConvert {
|
||||||
|
|
||||||
|
DeptmentConvert INSTANCE = Mappers.getMapper(DeptmentConvert.class);
|
||||||
|
|
||||||
|
@Mappings({@Mapping(source = "list", target = "list")})
|
||||||
|
PageResult<DeptmentVO> convert(PageResult<DeptmentBO> pageResult);
|
||||||
|
|
||||||
|
@Mappings({})
|
||||||
|
List<DeptmentVO> convert(List<DeptmentBO> list);
|
||||||
|
}
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
package cn.iocoder.mall.admin.api.constant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description:
|
||||||
|
*
|
||||||
|
* @author: zhenxianyimeng
|
||||||
|
* @date: 2019-06-16
|
||||||
|
* @time: 23:15
|
||||||
|
*/
|
||||||
|
public interface DeptmentConstants {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 顶级部门的pid
|
||||||
|
*/
|
||||||
|
Integer PID_ROOT = 0;
|
||||||
|
}
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
package cn.iocoder.mall.admin.api.dto.depetment;
|
||||||
|
|
||||||
|
import cn.iocoder.common.framework.vo.PageParam;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description:
|
||||||
|
*
|
||||||
|
* @author: zhenxianyimeng
|
||||||
|
* @date: 2019-06-21
|
||||||
|
* @time: 00:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class DeptmentPageDTO extends PageParam {
|
||||||
|
@ApiModelProperty(value = "根部门名字", example = "研发部")
|
||||||
|
private String name;
|
||||||
|
}
|
||||||
Loading…
Reference in new issue