package com.xunmei.system.dto;

import com.xunmei.system.api.domain.SysWorkTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "作息月统计编辑")
public class WorkTimeMonthEditNewDto  {

    @ApiModelProperty("机构")
    @NotNull(message = "请选择机构")
    @Size(min = 1, message = "请选择机构")
    private List<Long> orgIdList;


    @ApiModelProperty("作息列表")
    @Valid
    @NotNull(message = "请输入作息列表")
    @Size(min = 1, message = "请输入作息列表")
    private List<SysWorkTime> workTimeList;


}
