package cn.axzo.msg.center.api.request;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author yanglin
 */
@Setter
@Getter
public class AddMnsChannelRequest {

    @NotBlank(message = "渠道名称不能为空")
    private String channelCode;

    @NotBlank(message = "渠道名称不能为空")
    private String channelName;

    @NotNull(message = "优先级不能为空")
    private Integer priority;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
