forked from pig-mesh/pig
-
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.
Merge pull request !203 from fxz/dev
- Loading branch information
Showing
11 changed files
with
374 additions
and
1 deletion.
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
64 changes: 64 additions & 0 deletions
64
pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/vo/PostExcelVO.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,64 @@ | ||
package com.pig4cloud.pig.admin.api.vo; | ||
|
||
import com.alibaba.excel.annotation.ExcelProperty; | ||
import com.alibaba.excel.annotation.write.style.ColumnWidth; | ||
import lombok.Data; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import java.io.Serializable; | ||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* 岗位excel 对应的实体 | ||
* | ||
* @author fxz | ||
* @date 2022/3/21 | ||
*/ | ||
@Data | ||
@ColumnWidth(30) | ||
public class PostExcelVO implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* 主键ID | ||
*/ | ||
@ExcelProperty("岗位编号") | ||
private Long postId; | ||
|
||
/** | ||
* 岗位名称 | ||
*/ | ||
@NotBlank(message = "岗位名称不能为空") | ||
@ExcelProperty("岗位名称") | ||
private String postName; | ||
|
||
/** | ||
* 岗位标识 | ||
*/ | ||
@NotBlank(message = "岗位标识不能为空") | ||
@ExcelProperty("岗位标识") | ||
private String postCode; | ||
|
||
/** | ||
* 岗位排序 | ||
*/ | ||
@NotNull(message = "岗位排序不能为空") | ||
@ExcelProperty("岗位排序") | ||
private Integer postSort; | ||
|
||
/** | ||
* 岗位描述 | ||
*/ | ||
@NotBlank(message = "岗位描述不能为空") | ||
@ExcelProperty(value = "岗位描述") | ||
private String remark; | ||
|
||
/** | ||
* 创建时间 | ||
*/ | ||
@ExcelProperty(value = "创建时间") | ||
private LocalDateTime createTime; | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/vo/RoleExcelVO.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,56 @@ | ||
package com.pig4cloud.pig.admin.api.vo; | ||
|
||
import com.alibaba.excel.annotation.ExcelProperty; | ||
import com.alibaba.excel.annotation.write.style.ColumnWidth; | ||
import lombok.Data; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import java.io.Serializable; | ||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* 角色excel 对应的实体 | ||
* | ||
* @author fxz | ||
* @date 2022/3/21 | ||
*/ | ||
@Data | ||
@ColumnWidth(30) | ||
public class RoleExcelVO implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* 主键ID | ||
*/ | ||
@ExcelProperty("角色编号") | ||
private Long roleId; | ||
|
||
/** | ||
* 角色名称 | ||
*/ | ||
@NotBlank(message = "角色名称不能为空") | ||
@ExcelProperty("角色名称") | ||
private String roleName; | ||
|
||
/** | ||
* 角色标识 | ||
*/ | ||
@NotBlank(message = "角色标识不能为空") | ||
@ExcelProperty("角色标识") | ||
private String roleCode; | ||
|
||
/** | ||
* 角色描述 | ||
*/ | ||
@NotBlank(message = "角色描述不能为空") | ||
@ExcelProperty("角色描述") | ||
private String roleDesc; | ||
|
||
/** | ||
* 创建时间 | ||
*/ | ||
@ExcelProperty(value = "创建时间") | ||
private LocalDateTime createTime; | ||
|
||
} |
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
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
Oops, something went wrong.