wzy
2021-01-24 f7ea5773570beb5ad8c6efb5c1cf743294ee079b
zq-erp/src/main/java/com/matrix/system/app/dto/CreateServiceOrderDto.java
New file
@@ -0,0 +1,100 @@
package com.matrix.system.app.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.matrix.core.tools.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
/**
 * @author wzy
 * @date 2020-12-25
 **/
@ApiModel(value = "CreateServiceOrderDto", description = "创建服务单接口接收参数类")
public class CreateServiceOrderDto {
    @NotNull(message = "请选择会员")
    @ApiModelProperty(value = "会员ID")
    private Long vipId;
    @NotNull(message = "请选择美疗师")
    @ApiModelProperty(value = "美疗师ID")
    private Long beautyId;
    @NotNull(message = "请选择预约时间")
    @JsonFormat(pattern = DateUtil.DATE_FORMAT_MM, timezone = "GMT+8")
    @ApiModelProperty(value = "预约时间")
    private Date yyTime;
    @ApiModelProperty(value = "选择的项目")
    private List<CreateServiceOrderItemDto> projItems;
    @ApiModelProperty(value = "总时长")
    private Integer totalTime;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "资金密码")
    private String password;
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public Long getVipId() {
        return vipId;
    }
    public void setVipId(Long vipId) {
        this.vipId = vipId;
    }
    public Long getBeautyId() {
        return beautyId;
    }
    public void setBeautyId(Long beautyId) {
        this.beautyId = beautyId;
    }
    public Date getYyTime() {
        return yyTime;
    }
    public void setYyTime(Date yyTime) {
        this.yyTime = yyTime;
    }
    public List<CreateServiceOrderItemDto> getProjItems() {
        return projItems;
    }
    public void setProjItems(List<CreateServiceOrderItemDto> projItems) {
        this.projItems = projItems;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getTotalTime() {
        return totalTime;
    }
    public void setTotalTime(Integer totalTime) {
        this.totalTime = totalTime;
    }
}