1+ // Copyright 2018 JDCLOUD.COM
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+ //
15+ // NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+ package apis
18+
19+ import (
20+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
21+ )
22+
23+ type MobileStatusRequest struct {
24+
25+ core.JDCloudRequest
26+
27+ /* 手机号码 */
28+ Mobile string `json:"mobile"`
29+ }
30+
31+ /*
32+ * param mobile: 手机号码 (Required)
33+ *
34+ * @Deprecated, not compatible when mandatory parameters changed
35+ */
36+ func NewMobileStatusRequest (
37+ mobile string ,
38+ ) * MobileStatusRequest {
39+
40+ return & MobileStatusRequest {
41+ JDCloudRequest : core.JDCloudRequest {
42+ URL : "/mobile:status" ,
43+ Method : "POST" ,
44+ Header : nil ,
45+ Version : "v1" ,
46+ },
47+ Mobile : mobile ,
48+ }
49+ }
50+
51+ /*
52+ * param mobile: 手机号码 (Required)
53+ */
54+ func NewMobileStatusRequestWithAllParams (
55+ mobile string ,
56+ ) * MobileStatusRequest {
57+
58+ return & MobileStatusRequest {
59+ JDCloudRequest : core.JDCloudRequest {
60+ URL : "/mobile:status" ,
61+ Method : "POST" ,
62+ Header : nil ,
63+ Version : "v1" ,
64+ },
65+ Mobile : mobile ,
66+ }
67+ }
68+
69+ /* This constructor has better compatible ability when API parameters changed */
70+ func NewMobileStatusRequestWithoutParam () * MobileStatusRequest {
71+
72+ return & MobileStatusRequest {
73+ JDCloudRequest : core.JDCloudRequest {
74+ URL : "/mobile:status" ,
75+ Method : "POST" ,
76+ Header : nil ,
77+ Version : "v1" ,
78+ },
79+ }
80+ }
81+
82+ /* param mobile: 手机号码(Required) */
83+ func (r * MobileStatusRequest ) SetMobile (mobile string ) {
84+ r .Mobile = mobile
85+ }
86+
87+
88+ // GetRegionId returns path parameter 'regionId' if exist,
89+ // otherwise return empty string
90+ func (r MobileStatusRequest ) GetRegionId () string {
91+ return ""
92+ }
93+
94+ type MobileStatusResponse struct {
95+ RequestID string `json:"requestId"`
96+ Error core.ErrorResponse `json:"error"`
97+ Result MobileStatusResult `json:"result"`
98+ }
99+
100+ type MobileStatusResult struct {
101+ Code string `json:"code"`
102+ Message string `json:"message"`
103+ ChargeFlag string `json:"chargeFlag"`
104+ Area string `json:"area"`
105+ Operator string `json:"operator"`
106+ Status string `json:"status"`
107+ MnpStatus string `json:"mnpStatus"`
108+ }
0 commit comments