package com.jeequan.jeepay.core.model.smsconfig;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * application.yml 移植到DB中的配置变量
 **/
@Data
@Slf4j
public class JeepaydxSmsConfig extends AbstractSmsConfig implements Serializable {

    private static final String SMS_GATEWAY = "https://sdk.clysz.cn/v7";

    // 【计全短信】发送接口
    public static final String SMS_SEND = "/msg/submit.json";
    // 【计全短信】余额查询接口
    public static final String SMS_BALANCE_QUERY = "/balance/query.json";

    public static String getSmsUrl(String uri){
        return SMS_GATEWAY + uri;
    }

    /** 查询相关业务类型 **/
    public static final String SMS_QUERY_TYPE = "balance";

    /** 用户名 **/
    private String userName;

    /** 密码 **/
    private String accountPwd;

    /** 签名 **/
    private String signName;
}
