2022-05-05 13:58:45 +08:00
|
|
|
|
package net.maku.system.vo;
|
2022-04-22 15:26:39 +08:00
|
|
|
|
|
2022-05-05 13:58:45 +08:00
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
2022-04-22 15:26:39 +08:00
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
2023-01-18 00:04:56 +08:00
|
|
|
|
import jakarta.validation.constraints.Min;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
2022-04-22 15:26:39 +08:00
|
|
|
|
import lombok.Data;
|
2022-05-05 13:58:45 +08:00
|
|
|
|
import net.maku.framework.common.utils.DateUtils;
|
2022-04-22 15:26:39 +08:00
|
|
|
|
import org.hibernate.validator.constraints.Range;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2022-05-05 13:58:45 +08:00
|
|
|
|
import java.util.Date;
|
2022-04-22 15:26:39 +08:00
|
|
|
|
|
|
|
|
|
/**
|
2023-01-18 00:04:56 +08:00
|
|
|
|
* 岗位管理
|
|
|
|
|
*
|
|
|
|
|
* @author 阿沐 babamu@126.com
|
|
|
|
|
*/
|
2022-04-22 15:26:39 +08:00
|
|
|
|
@Data
|
2022-05-05 13:58:45 +08:00
|
|
|
|
@Schema(description = "岗位管理")
|
|
|
|
|
public class SysPostVO implements Serializable {
|
2022-04-22 15:26:39 +08:00
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
2022-05-05 13:58:45 +08:00
|
|
|
|
@Schema(description = "id")
|
|
|
|
|
private Long id;
|
|
|
|
|
|
2022-04-23 23:01:54 +08:00
|
|
|
|
@Schema(description = "岗位编码", required = true)
|
2022-04-22 15:26:39 +08:00
|
|
|
|
@NotBlank(message = "岗位编码不能为空")
|
|
|
|
|
private String postCode;
|
|
|
|
|
|
2022-04-23 23:01:54 +08:00
|
|
|
|
@Schema(description = "岗位名称", required = true)
|
2022-04-22 15:26:39 +08:00
|
|
|
|
@NotBlank(message = "岗位名称不能为空")
|
|
|
|
|
private String postName;
|
|
|
|
|
|
2022-04-23 23:01:54 +08:00
|
|
|
|
@Schema(description = "排序", required = true)
|
2022-04-22 15:26:39 +08:00
|
|
|
|
@Min(value = 0, message = "排序值不能小于0")
|
|
|
|
|
private Integer sort;
|
|
|
|
|
|
2022-04-23 23:01:54 +08:00
|
|
|
|
@Schema(description = "状态 0:停用 1:正常", required = true)
|
2022-04-22 15:26:39 +08:00
|
|
|
|
@Range(min = 0, max = 1, message = "状态不正确")
|
|
|
|
|
private Integer status;
|
|
|
|
|
|
2022-05-05 13:58:45 +08:00
|
|
|
|
@Schema(description = "创建时间")
|
|
|
|
|
@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
|
|
|
|
|
private Date createTime;
|
|
|
|
|
|
2022-04-22 15:26:39 +08:00
|
|
|
|
}
|