forked from YunaiV/yudao-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3322bf
commit 68458fb
Showing
10 changed files
with
204 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...-application/src/main/java/cn/iocoder/mall/admin/application/convert/DeptmentConvert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ystem-service-api/src/main/java/cn/iocoder/mall/admin/api/constant/DeptmentConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...em-service-api/src/main/java/cn/iocoder/mall/admin/api/dto/depetment/DeptmentPageDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters