POST dz_api/Permission/AddRole

Request Information

URI Parameters

None.

Body Parameters

RoleInfo
NameDescriptionTypeAdditional information
AaId

代账公司id

integer

None.

RoleId

角色id

integer

None.

RoleName

角色名称

string

None.

IsAdmin

是否管理

boolean

None.

IsDefault

是否默认

boolean

None.

Permission

权限JSON

string

None.

JxcStr

进销存权限字符串

string

None.

Description

权限描述

string

None.

CreatedBy

创建人

integer

None.

CreatedDate

创建时间

date

None.

ModifiedBy

修改人

integer

None.

ModifiedDate

修改时间

date

None.

CopyRoleId

复制角色ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AaId": 1,
  "RoleId": 2,
  "RoleName": "sample string 3",
  "IsAdmin": true,
  "IsDefault": true,
  "Permission": "sample string 6",
  "JxcStr": "sample string 7",
  "Description": "sample string 8",
  "CreatedBy": 9,
  "CreatedDate": "2024-11-25T01:23:31.8491328+08:00",
  "ModifiedBy": 11,
  "ModifiedDate": "2024-11-25T01:23:31.8491328+08:00",
  "CopyRoleId": 13
}

application/xml, text/xml

Sample:
<RoleInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model">
  <_x003C_AaId_x003E_k__BackingField>1</_x003C_AaId_x003E_k__BackingField>
  <_x003C_CopyRoleId_x003E_k__BackingField>13</_x003C_CopyRoleId_x003E_k__BackingField>
  <_x003C_CreatedBy_x003E_k__BackingField>9</_x003C_CreatedBy_x003E_k__BackingField>
  <_x003C_CreatedDate_x003E_k__BackingField>2024-11-25T01:23:31.8491328+08:00</_x003C_CreatedDate_x003E_k__BackingField>
  <_x003C_Description_x003E_k__BackingField>sample string 8</_x003C_Description_x003E_k__BackingField>
  <_x003C_IsAdmin_x003E_k__BackingField>true</_x003C_IsAdmin_x003E_k__BackingField>
  <_x003C_IsDefault_x003E_k__BackingField>true</_x003C_IsDefault_x003E_k__BackingField>
  <_x003C_JxcStr_x003E_k__BackingField>sample string 7</_x003C_JxcStr_x003E_k__BackingField>
  <_x003C_ModifiedBy_x003E_k__BackingField>11</_x003C_ModifiedBy_x003E_k__BackingField>
  <_x003C_ModifiedDate_x003E_k__BackingField>2024-11-25T01:23:31.8491328+08:00</_x003C_ModifiedDate_x003E_k__BackingField>
  <_x003C_Permission_x003E_k__BackingField>sample string 6</_x003C_Permission_x003E_k__BackingField>
  <_x003C_RoleId_x003E_k__BackingField>2</_x003C_RoleId_x003E_k__BackingField>
  <_x003C_RoleName_x003E_k__BackingField>sample string 3</_x003C_RoleName_x003E_k__BackingField>
</RoleInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Msg

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Msg": "sample string 2",
  "Data": {},
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model">
  <Data />
  <Msg>sample string 2</Msg>
  <StatusCode>CONTINUE</StatusCode>
  <Success>true</Success>
</MessageModel>