package com.ruoyi.wgz.bo.req;

import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("考勤打卡·上下班打卡请求对象")
public class WgzAppSubmitTheClockReq implements Serializable {
	@ApiModelProperty("上下班打卡标识（0上班 1下班）")
	@NotBlank(message = "上下班打卡标识不能为空")
	@Pattern(regexp = "[01]", message = "上下班打卡标识只能为 0 或 1")
	private String type;

	@ApiModelProperty("打卡位置")
	@NotBlank(message = "打卡位置不能为空")
	private String pnchOsition;
}
