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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| package com.fzzy.push.gd2020;
|
|
| /**
| * @Desc: 协议返回封装
| * @author: andy.jia
| * @update-time: 2022/10/8 16:11
| */
| public enum GDResult {
|
| CODE_200(200, "请求成功"),
| CODE_500(500, "请求失败"),
| CODE_40101(40101, "请求接口地址错误"),
| CODE_80401(80401, "AccessToken参数错误"),
| CODE_80402(80402, "AccessToken无效"),
| CODE_80403(80403, "数字签名校验失败"),
|
|
| CODE_80416(80416, "映射失败");
|
|
| private int code;
| private String name;
|
|
| public int getCode() {
| return code;
| }
|
| public void setCode(int code) {
| this.code = code;
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| GDResult(int code, String name) {
| this.code = code;
| this.name = name;
| }
| }
|
|