POST api/Roles

添加角色

Request Information

URI Parameters

None.

Body Parameters

Name=[Name,string],LogoUrl=[LogoUrl,string],CompanyCID=[节点ID,long?],typeId=[int,手机端角色和OMS角色区分],Type=[int,类型0为角色,1为岗位]

UploadParameters
NameDescriptionTypeAdditional information
u

用户ID StaffID

integer

None.

t

全局数据(加密) 1.单点登陆格式:[[用户密码,加密]|[requestTime]|[设备标识],加密] 2.其他数据通讯格式:[[用户ID]|[用户密码,加密]|[requestTime]|[设备标识],加密]

string

Required

d

数据参数 加密(单点登陆除外) 不同API,参数格式不同

string

None.

Request Formats

application/json, text/json

Sample:
{
  "u": 1,
  "t": "sample string 2",
  "d": "sample string 3"
}

application/x-www-form-urlencoded

Sample:
u=Value&t=Value&d=Value

Response Information

Resource Description

添加角色

globally unique identifier

Response Formats

application/json, text/json

Sample:
"d29ab0fb-5851-411e-accd-f699e92aa0f8"