POST api/OrganizationModuleRelation/AddOrganizationModuleRelationSubmit

Request Information

URI Parameters

None.

Body Parameters

OrganizationModuleRelationDTO
NameDescriptionTypeAdditional information
ModuleId

integer

None.

IsIndeterminate

boolean

None.

Flag

string

None.

OrganizationId

string

None.

ModuleIds

Collection of integer

None.

IndeterminateModuleIds

Collection of integer

None.

Id

integer

None.

CreateBy

创建人

string

None.

CreateTime

创建时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ModuleId": 1,
  "IsIndeterminate": true,
  "Flag": "sample string 2",
  "OrganizationId": "sample string 3",
  "ModuleIds": [
    1,
    1
  ],
  "IndeterminateModuleIds": [
    1,
    1
  ],
  "Id": 4,
  "CreateBy": "sample string 6",
  "CreateTime": "2019-04-21T16:33:21.6989213+08:00"
}

application/xml, text/xml

Sample:
<OrganizationModuleRelationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CreateBy>sample string 6</CreateBy>
  <CreateId>1</CreateId>
  <CreateTime>2019-04-21T16:33:21.6989213+08:00</CreateTime>
  <Id>4</Id>
  <IsObsoleted>true</IsObsoleted>
  <ModifyBy>sample string 5</ModifyBy>
  <ModifyId>1</ModifyId>
  <ModifyTime>2019-04-21T16:33:21.6989213+08:00</ModifyTime>
  <Flag>sample string 2</Flag>
  <IndeterminateModuleIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </IndeterminateModuleIds>
  <IsIndeterminate>true</IsIndeterminate>
  <ModuleId>1</ModuleId>
  <ModuleIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </ModuleIds>
  <OrganizationId>sample string 3</OrganizationId>
</OrganizationModuleRelationDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrganizationModuleRelationDTO'.

Response Information

Resource Description

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>