first commit
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
package com.starry.common.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.MappedSuperclass;
|
||||
import javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
* 基类
|
||||
* @since 2022/7/14
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@MappedSuperclass
|
||||
public class BaseEntity<T> implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ApiModelProperty(value = "逻辑删除 1已删除 0未删除")
|
||||
private Boolean deleted;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createdTime;
|
||||
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updatedTime;
|
||||
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updatedBy;
|
||||
|
||||
@Version
|
||||
@ApiModelProperty(value = "数据版本")
|
||||
private Long version;
|
||||
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String searchValue;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String beginTime;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
@Transient
|
||||
@TableField(exist = false)
|
||||
private Map<String, Object> params = new HashMap<>();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.starry.common.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
* 分页基类
|
||||
* @since 2021/9/2
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class BasePageEntity implements Serializable {
|
||||
|
||||
private int currentPage = 1;
|
||||
|
||||
private int pageSize = 10;
|
||||
|
||||
private int pageNum = 1;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Boolean deleted = Boolean.FALSE;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Long createdBy;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createdTime;
|
||||
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Date updatedTime;
|
||||
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Long updatedBy;
|
||||
|
||||
@Version
|
||||
private Long version;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String searchValue;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String beginTime;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
@Transient
|
||||
@TableField(exist = false)
|
||||
private Map<String, Object> params;
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.starry.common.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
* 验证码拼图类
|
||||
*/
|
||||
@Data
|
||||
public class Captcha {
|
||||
|
||||
/**
|
||||
* 随机字符串
|
||||
**/
|
||||
private String nonceStr;
|
||||
/**
|
||||
* 验证值
|
||||
**/
|
||||
private String value;
|
||||
/**
|
||||
* 生成的画布的base64
|
||||
**/
|
||||
private String canvasSrc;
|
||||
/**
|
||||
* 画布宽度
|
||||
**/
|
||||
private Integer canvasWidth;
|
||||
/**
|
||||
* 画布高度
|
||||
**/
|
||||
private Integer canvasHeight;
|
||||
/**
|
||||
* 生成的阻塞块的base64
|
||||
**/
|
||||
private String blockSrc;
|
||||
/**
|
||||
* 阻塞块宽度
|
||||
**/
|
||||
private Integer blockWidth;
|
||||
/**
|
||||
* 阻塞块高度
|
||||
**/
|
||||
private Integer blockHeight;
|
||||
/**
|
||||
* 阻塞块凸凹半径
|
||||
**/
|
||||
private Integer blockRadius;
|
||||
/**
|
||||
* 阻塞块的横轴坐标
|
||||
**/
|
||||
private Integer blockX;
|
||||
/**
|
||||
* 阻塞块的纵轴坐标
|
||||
**/
|
||||
private Integer blockY;
|
||||
/**
|
||||
* 图片获取位置
|
||||
**/
|
||||
private Integer place;
|
||||
}
|
||||
Reference in New Issue
Block a user