POST Api/Invoke/Register/{CompanyId}
用户注册
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId |
公司ID |
string |
Required |
Body Parameters
请求模型
SpeedPower.Utility.Models.Service.MIUsers.RegisterBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserName |
用户名 |
string |
Required String length: inclusive between 2 and 64 |
| Roleids |
权限ID |
Collection of string |
Required |
| PhoneNumber |
电话号码 |
string |
Required String length: inclusive between 11 and 18 |
| Password |
密码 |
string |
Required Data type: Password String length: inclusive between 6 and 100 |
| ConfirmPassword |
确认密码 |
string |
Data type: Password |
|
电子邮件 |
string |
String length: inclusive between 2 and 50 |
Request Formats
application/json, text/json
Sample:
{
"UserName": "sample string 1",
"Roleids": [
"sample string 1",
"sample string 2"
],
"PhoneNumber": "sample string 2",
"Password": "sample string 3",
"ConfirmPassword": "sample string 4",
"Email": "sample string 5"
}
Response Information
Resource Description
用户注册
SpeedPower.Utility.Models.Helper.ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Succeed |
操作是否成功 |
boolean |
None. |
| Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succeed": true,
"Message": "sample string 2"
}