POST api/WebInterface/Guider/Regist/WithVerifyCode
注册一个新的导游。此操作将验证导游是否已注过册。
Request Information
URI Parameters
None.
Body Parameters
导游的注册信息。
GuiderRegistParmName | Description | Type | Additional information |
---|---|---|---|
guidernumber |
导游证号。 |
string |
Required Max length: 20 |
guidername |
导游姓名。 |
string |
Required Max length: 20 Min length: 2 |
mobile |
手机号码。 |
string |
Required Max length: 20 |
verifycode |
验证码 |
string |
Required Max length: 6 |
pwd |
输入的密码,请使用upper_Md5(密码的明文) |
string |
Required Max length: 64 |
identitycode |
身份证号 |
string |
Max length: 20 |
photodir |
导游图片的路径 |
string |
None. |
openidtype |
开放ID的类型,1表示微信OPENID,2表示微信UNIONID ,3表示阿里OPENID,4表示阿里UNIONID |
string |
Required Max length: 1 Min length: 1 |
openidcontent |
开放ID的内容。 |
string |
Required Max length: 64 |
Request Formats
application/json, text/json
Sample:
{ "guidernumber": "sample string 1", "guidername": "sample string 2", "mobile": "sample string 3", "verifycode": "sample string 4", "pwd": "sample string 5", "identitycode": "sample string 6", "photodir": "sample string 7", "openidtype": "sample string 8", "openidcontent": "sample string 9" }
application/xml, text/xml
Sample:
<GuiderRegistParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface"> <guidername>sample string 2</guidername> <guidernumber>sample string 1</guidernumber> <identitycode>sample string 6</identitycode> <mobile>sample string 3</mobile> <openidcontent>sample string 9</openidcontent> <openidtype>sample string 8</openidtype> <photodir>sample string 7</photodir> <pwd>sample string 5</pwd> <verifycode>sample string 4</verifycode> </GuiderRegistParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
注册一个新的导游。此操作将验证导游是否已注过册。
CommonOperationResultWithTagOfGuiderInfoResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | GuiderInfoResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "guidernumber": "sample string 1", "guidername": "sample string 2", "sex": "sample string 3", "languageType": "sample string 4", "mobile": "sample string 5", "phone": "sample string 6", "enablestatus": true, "identitycode": "sample string 8", "guidertype": "sample string 9", "pwd": "sample string 10", "totallogincount": 11, "authstatus": "sample string 12" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfGuiderInfoResult90Z6Xn9G xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface"> <d2p1:authstatus>sample string 12</d2p1:authstatus> <d2p1:enablestatus>true</d2p1:enablestatus> <d2p1:guidername>sample string 2</d2p1:guidername> <d2p1:guidernumber>sample string 1</d2p1:guidernumber> <d2p1:guidertype>sample string 9</d2p1:guidertype> <d2p1:identitycode>sample string 8</d2p1:identitycode> <d2p1:languageType>sample string 4</d2p1:languageType> <d2p1:mobile>sample string 5</d2p1:mobile> <d2p1:phone>sample string 6</d2p1:phone> <d2p1:pwd>sample string 10</d2p1:pwd> <d2p1:sex>sample string 3</d2p1:sex> <d2p1:totallogincount>11</d2p1:totallogincount> </tag> </CommonOperationResultWithTagOfGuiderInfoResult90Z6Xn9G>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.