package com.cool.store.vo.fees;

import com.cool.store.annotation.DictField;
import com.cool.store.enums.master.BrandTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 分账配置VO
 *
 * @author system
 */
@Data
public class WalletAllocationConfigVO {
    @ApiModelProperty("配置id")
    private Long id;

    @ApiModelProperty("加盟品牌:1-正新鸡排,2-正新三明治,3-正烧记，4-大鼓米线,5-串小妹,6-茂掌柜")
    private Integer joinBrand;

    @ApiModelProperty("加盟品牌名称")
    private String joinBrandName;

    @ApiModelProperty("招商分部id，0表示全部")
    private Long investDivisionId;

    @ApiModelProperty("招商分部名称")
    private String investDivisionName;

    @ApiModelProperty("费用类型")
    private String expenseType;

    @ApiModelProperty("费用类型名称")
    @DictField
    private String expenseTypeName;

    @ApiModelProperty("分账公司配置列表")
    private List<WalletAllocationCompanyVO> companyList;

    @ApiModelProperty("创建人id")
    private String createUserId;

    @ApiModelProperty("创建人名称")
    private String createUserName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    public String getJoinBrandName() {
        return BrandTypeEnum.getDescByCode(this.joinBrand);
    }
}

