package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cyksj.model.BaseEntity;
import com.cyksj.model.views.UserMirrorShopApplyInfoView;
import com.ejlchina.searcher.bean.DbIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

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

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

	private String logo;

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

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

	private Date businessBindTime;

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

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

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

	/**
	 * 二维码
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String qrCode;

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

	/**
	 * 申请修改记录
	 */
	@DbIgnore
	@TableField(exist = false)
	private UserMirrorShopApplyInfoView applyInfoView;

	/**
	 * 加盟费状态
	 */
	@DbIgnore
	@TableField(exist = false)
	private Boolean joinFeeStatus = true;

	/**
	 * 最新修改时间
	 */
	@DbIgnore
	@TableField(exist = false)
	private Date modifyTime;

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

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

