package com.cool.store.request.fees;

import com.cool.store.common.InsertGroup;
import com.cool.store.common.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 分账配置新增Request
 *
 * @author system
 */
@Data
public class WalletAllocationConfigAddRequest {
    @ApiModelProperty(value = "配置id", required = true)
    @NotNull(message = "配置id不能为空", groups = {UpdateGroup.class})
    private Long id;

    @ApiModelProperty(value = "加盟品牌:1-正新鸡排,2-正新三明治,3-正烧记，4-大鼓米线,5-串小妹,6-茂掌柜", required = true)
    @NotNull(message = "加盟品牌不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer joinBrand;

    @ApiModelProperty(value = "招商分部id，0表示全部", required = true)
    @NotNull(message = "招商分部id不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Long investDivisionId;

    @ApiModelProperty(value = "费用类型，字典表expense_type", required = true)
    @NotNull(message = "费用类型不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String expenseType;

    @ApiModelProperty(value = "分账公司配置列表", required = true)
    @NotEmpty(message = "分账公司配置列表不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private List<WalletAllocationCompanyRequest> companyList;
}

