forked from sfms3.0/sfms3.0
2 changed files with 92 additions and 0 deletions
@ -0,0 +1,40 @@ |
|||||
|
package com.win.framework.mybatis.core.viewobject; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
||||
|
|
||||
|
/** |
||||
|
* 基础实体对象 |
||||
|
* |
||||
|
* @author 闻荫源码 |
||||
|
*/ |
||||
|
@Data |
||||
|
public abstract class BaseVO implements Serializable { |
||||
|
|
||||
|
@Schema(description = "id", example = "id") |
||||
|
private Long id; |
||||
|
|
||||
|
@Schema(description = "创建时间") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
@Schema(description = "最后更新时间") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime updateTime; |
||||
|
|
||||
|
@Schema(description = "创建者") |
||||
|
private String creator; |
||||
|
|
||||
|
@Schema(description = "更新者") |
||||
|
private String updater; |
||||
|
|
||||
|
@Schema(description = "是否删除") |
||||
|
private Boolean deleted; |
||||
|
|
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
package com.win.framework.mybatis.core.viewobject; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 基础实体对象 |
||||
|
* |
||||
|
* @author 闻荫源码 |
||||
|
*/ |
||||
|
@Data |
||||
|
public abstract class MasterVO extends BaseVO{ |
||||
|
|
||||
|
@Schema(description = "是否可用", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "是否可用不能为空") |
||||
|
private String available; |
||||
|
|
||||
|
@Schema(description = "生效时间") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime activeTime; |
||||
|
|
||||
|
@Schema(description = "失效时间") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime expireTime; |
||||
|
|
||||
|
@Schema(description = "备注", example = "你猜") |
||||
|
private String remark; |
||||
|
|
||||
|
@Schema(description = "删除时间") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime deletionTime; |
||||
|
|
||||
|
@Schema(description = "删除者") |
||||
|
private String deleterId; |
||||
|
|
||||
|
@Schema(description = "扩展属性") |
||||
|
private String extraProperties; |
||||
|
|
||||
|
@Schema(description = "地点ID") |
||||
|
private String siteId; |
||||
|
|
||||
|
@Schema(description = "并发乐观锁") |
||||
|
private Integer ConcurrencyStamp; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue