POST HYAPI/AssistantService/Account/Builder

新增施工人员(施工人员的账号为11位国内手机号码)------允许操作角色:管理员(Admin),搅拌站用户(StationUser)

服务请求信息

URI 参数

None.

Body 参数

待添加的用户信息

UserBaseModelForPhoneUser
NameDescriptionTypeAdditional information
user_account

用户账号信息

string

Required

Matching regular expression pattern: ^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\d{8}$

user_info

用户详细信息

UserInformationModel

None.

Request Formats

application/json, text/json

Sample:
{
  "user_account": "sample string 1",
  "user_info": {
    "user_name": "sample string 1",
    "user_company": "sample string 2",
    "user_dept": "sample string 3",
    "user_pos": "sample string 4",
    "user_phone": "sample string 5",
    "user_remark": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<UserBaseModelForPhoneUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model">
  <user_account>sample string 1</user_account>
  <user_info>
    <user_company>sample string 2</user_company>
    <user_dept>sample string 3</user_dept>
    <user_name>sample string 1</user_name>
    <user_phone>sample string 5</user_phone>
    <user_pos>sample string 4</user_pos>
    <user_remark>sample string 6</user_remark>
  </user_info>
</UserBaseModelForPhoneUser>

application/x-www-form-urlencoded

Sample:

Sample not available.

服务返回信息

返回数据说明

如果新增成功则Data中返回新加数据ID,否则在Message中返回错误信息

ResponseDataModelOfString
NameDescriptionTypeAdditional information
State

返回消息状态

integer

None.

Message

操作信息

string

None.

Data

返回数据

string

None.

返回数据范例

application/json, text/json

Sample:
{
  "State": 1,
  "Message": "sample string 2",
  "Data": "sample string 3"
}

application/xml, text/xml

Sample:
<ResponseDataModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model">
  <Data>sample string 3</Data>
  <Message>sample string 2</Message>
  <State>1</State>
</ResponseDataModelOfstring>