44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
package com.sunnyfarm.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.Size;
|
|
import java.time.LocalDateTime;
|
|
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = true)
|
|
@TableName("merchants")
|
|
public class Merchant extends BaseEntity {
|
|
|
|
private Long userId; // 关联用户ID
|
|
|
|
@NotBlank(message = "店铺名称不能为空")
|
|
@Size(max = 100, message = "店铺名称不能超过100个字符")
|
|
private String shopName;
|
|
|
|
private String businessLicense; // 营业执照
|
|
|
|
@Size(max = 50, message = "法人姓名不能超过50个字符")
|
|
private String legalPerson;
|
|
|
|
private String contactPhone; // 联系电话
|
|
|
|
@Size(max = 500, message = "经营范围不能超过500个字符")
|
|
private String businessScope;
|
|
|
|
@Size(max = 200, message = "经营地址不能超过200个字符")
|
|
private String address;
|
|
|
|
private Integer status; // 状态:0待审核,1通过,2拒绝
|
|
|
|
private LocalDateTime verifyTime; // 审核时间
|
|
|
|
// 关联用户信息(非数据库字段)
|
|
@TableField(exist = false)
|
|
private User user;
|
|
}
|