xuekang
2024-05-11 bac0878349a1db23e7b420ea164e22fb9db73a99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.nuvole.common.domain.result;
 
import com.nuvole.common.domain.emnu.SMSResultEmnu;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
/**
 * 短信返回结果
 *
 * @Author: lc
 * @Date: 2019/8/5 11:48
 */
@Data
public class SMSResult {
 
    @ApiModelProperty("状态码")
    private String code;
 
    @ApiModelProperty("描述")
    private String msg;
 
    public SMSResult(SMSResultEmnu resultEmnu, String msg) {
        this.code = resultEmnu.getCode();
        this.msg = msg;
    }
 
    public SMSResult(SMSResultEmnu resultEmnu) {
        this.code = resultEmnu.getCode();
        this.msg = resultEmnu.getMsg();
    }
 
}