package com.ruoyi.demo.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.demo.entity.Store;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class StoreVo {
    @NotBlank(groups={EditGroup.class},message = "storeId不能为空")
    private String storeId;
    @NotBlank(groups={AddGroup.class, EditGroup.class},message = "店铺名称不能为空")
    private String storeName;
    @NotBlank(groups={AddGroup.class, EditGroup.class},message = "地区信息不能为空")
    private String addrInfo;
    @NotBlank(groups={AddGroup.class, EditGroup.class},message = "addrCode不能为空")
    private String addrCode;
    private String addrCodeInfo;

    private BigDecimal lat;
    private BigDecimal lng;
    private String point;
    private LocalDateTime createTime;

    private String searchText;

    private int pageNum = 1;
    private int pageSize = 10;

    @NotBlank(groups={AddGroup.class, EditGroup.class},message = "principalName不能为空")
    private String principalName;
    @NotBlank(groups={AddGroup.class, EditGroup.class},message = "principalTelephone不能为空")
    private String principalTelephone;


}
