package shop.alien.entity.store.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 商家端-员工列表查询 DTO（QueryString 绑定）
 */
@Data
@JsonInclude
@ApiModel(value = "StoreStaffConfigListQueryDto对象", description = "商家端-员工列表查询DTO")
public class StoreStaffConfigListQueryDto {

    @ApiModelProperty(value = "店铺ID")
    private Integer storeId;

    @ApiModelProperty(value = "分页页数", example = "1")
    private Integer page;

    @ApiModelProperty(value = "分页条数", example = "10")
    private Integer size;

    @ApiModelProperty(value = "员工状态(0-待审核 1-审核通过 2-审核拒绝)", example = "1")
    private String status;

    @ApiModelProperty(value = "上线状态（0-上线 1-下线）")
    private Integer onlineStatus;

    @ApiModelProperty(value = "职位")
    private String staffPosition;

    @ApiModelProperty(value = "员工名称")
    private String staffName;

    @ApiModelProperty(value = "创建时间开始（yyyy-MM-dd HH:mm:ss）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startCreatedTime;

    @ApiModelProperty(value = "创建时间结束（yyyy-MM-dd HH:mm:ss）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endCreatedTime;
}


