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.math.BigDecimal;
import java.util.Date;

/**
 * 加盟费用标准收费额配置VO
 */
@Data
public class FeeStandardConfigVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("加盟品牌")
    private Integer joinBrand;

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

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

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

    @ApiModelProperty("金额")
    private BigDecimal amount;

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

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

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

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


