package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cyksj.model.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/*
 *项目名: yhlxj
 *文件名: YhShop
 *创建者: JavaZou
 *创建时间:2023/9/14 13:59
 */
@Getter
@Setter
public class YhShop extends BaseEntity {
	/**
	 * 店主id
	 */
	private Long userId;

	/**
	 * 店铺名称
	 */
	private String name;

	/**
	 * 自定义id
	 */
	private String customId;

	/**
	 * 用户是否展示广告位 默认false
	 */
	private Boolean isShowAd;

	/**
	 * 商务id
	 */
	private Long businessId;

	private Date businessBindTime;

	/**
	 * 是否审核通过
	 */
	private Status verifyStatus;

	/**
	 * 店铺开放状态
	 */
	private Boolean status;

	/**
	 * 审核失败原因
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String reason;

	/**
	 * 联系方式
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String contact;

	/**
	 * 备注
	 */
	private String remark;

	@Getter
	public enum Status {
		verify("审核中"),
		success("审核通过"),
		fail("审核失败");
		String desc;

		Status(String desc) {
			this.desc = desc;
		}
	}
}

