package cn.ey.biz.module.system.api.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 切换用户DTO
 */
@Data
public class UserSwitchRecordReqDTO {

    @ApiModelProperty(value = "应用编码")
    @NotNull(message = "应用编码不能为空")
    private String appCode;

    @ApiModelProperty(value = "登录用户",example = "xxxx")
    @NotNull(message = "登录用户不能为空")
    private Long currentUserId;

    @ApiModelProperty(value = "用户（从）",example = "xxxx")
    private Long fromUserId;

    @ApiModelProperty(value = "用户（到）",example = "xxxx")
    private Long toUserId;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
