package com.starry.admin.modules.clerk.module.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author admin 动态审核
 */
@Data
@ApiModel(value = "店员资料审核状态修改参数", description = "修改店员资料审核状态的请求参数")
public class PlayClerkUserReviewStateEditVo {

    @NotBlank(message = "ID不能为空")
    @ApiModelProperty(value = "审核记录ID", required = true, example = "1", notes = "店员资料审核记录的ID")
    private String id;

    /**
     * 审核状态（0：未审核:1：审核通过，2：审核不通过）
     */
    @NotBlank(message = "审核状态不能为空")
    @Pattern(regexp = "[12]", message = "审核状态必须为1或2")
    @ApiModelProperty(value = "审核状态", required = true, example = "1", notes = "1：审核通过，2：审核不通过")
    private String reviewState;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "审核内容", example = "资料完整，通过审核", notes = "审核的备注内容或拒绝原因")
    private String reviewCon;

    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间", hidden = true, notes = "系统自动生成，无需传入")
    private LocalDateTime reviewTime = LocalDateTime.now();

    /**
     * 店员分组ID
     */
    @ApiModelProperty(value = "店员分组ID", required = false, notes = "审核通过时可选，指定店员所属分组")
    private String groupId;
}
