粉丝管理
This commit is contained in:
59
src/main/java/com/rj/entity/FanManagement.java
Normal file
59
src/main/java/com/rj/entity/FanManagement.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package com.rj.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 粉丝管理表 fan_management
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("fan_management")
|
||||
@Schema(description = "粉丝管理")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FanManagement implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 粉丝 id(与 {@link #tenantId} 组成复合主键 {@code (tenant_id, id)})。
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.INPUT)
|
||||
@Schema(description = "粉丝ID(复合主键之一,须与 tenantId 一起使用)")
|
||||
private Long id;
|
||||
|
||||
@TableField("tenant_id")
|
||||
@Schema(description = "租户ID")
|
||||
private String tenantId;
|
||||
|
||||
@TableField("avatar")
|
||||
@Schema(description = "头像路径")
|
||||
private String avatar;
|
||||
|
||||
@TableField("nickname")
|
||||
@Schema(description = "昵称")
|
||||
private String nickname;
|
||||
|
||||
@TableField("mobile")
|
||||
@Schema(description = "手机号")
|
||||
private String mobile;
|
||||
|
||||
@TableField("created_at")
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@TableField("share_num")
|
||||
@Schema(description = "分享次数")
|
||||
private Integer shareNum;
|
||||
}
|
||||
Reference in New Issue
Block a user