package com.crm.rely.backend.model.entity.sys.remit;

import com.crm.rely.backend.core.constant.ManagerConstant;
import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
public class SysRemitChannelBaseUpdateEntity extends BaseUpdateEntity {

    /**
     * 通道位置code
     */
    @NotBlank(message = ManagerConstant.REMITTANCE_CHANNEL_CODE_NOT_NULL)
    @NotNull(message = ManagerConstant.REMITTANCE_CHANNEL_CODE_NOT_NULL)
    private String code;

    /**
     * 通道名称
     */
    @NotBlank(message = ManagerConstant.REMITTANCE_CHANNEL_NAME_NOT_NULL)
    @NotNull(message = ManagerConstant.REMITTANCE_CHANNEL_NAME_NOT_NULL)
    private String name;
    /**
     * 调用通道的路由地址
     */
    @NotBlank(message = ManagerConstant.REMITTANCE_CHANNEL_REQUEST_URL_NOT_NULL)
    @NotNull(message = ManagerConstant.REMITTANCE_CHANNEL_REQUEST_URL_NOT_NULL)
    private String requestUrl;
    /**
     * 通道图标(icon)
     */
    @NotBlank(message = ManagerConstant.REMITTANCE_CHANNEL_ICON_NOT_NULL)
    @NotNull(message = ManagerConstant.REMITTANCE_CHANNEL_ICON_NOT_NULL)
    private String icon;
    /**
     * 介绍
     */
    @NotBlank(message = ManagerConstant.REMITTANCE_CHANNEL_INTRODUCE_NOT_NULL)
    @NotNull(message = ManagerConstant.REMITTANCE_CHANNEL_INTRODUCE_NOT_NULL)
    private String introduce;

    /**
     * 是否启用 1启用 0不启用
     */
    private Integer valid;

    private Integer subIndex;
}
