POST api/FunctionModule/AddFunctionModuleSubmit

Request Information

URI Parameters

None.

Body Parameters

FunctionModuleDTO
NameDescriptionTypeAdditional information
FunctionModuleName

string

None.

FunctionBodyId

integer

None.

FunctionModuleRemark

string

None.

ModuleTypeList

Collection of ModuleTypeRelationDTO

None.

ModuleButtonList

Collection of ModuleTypeRelationDTO

None.

Id

编号

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "FunctionModuleName": "sample string 1",
  "FunctionBodyId": 2,
  "FunctionModuleRemark": "sample string 3",
  "ModuleTypeList": [
    {
      "Mid": 1,
      "Tid": 2,
      "OrderId": 3,
      "MTRelationRemark": "sample string 4",
      "TypeAttrList": [
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        },
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        }
      ],
      "InnerTypeList": [
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        },
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        }
      ],
      "Id": 5
    },
    {
      "Mid": 1,
      "Tid": 2,
      "OrderId": 3,
      "MTRelationRemark": "sample string 4",
      "TypeAttrList": [
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        },
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        }
      ],
      "InnerTypeList": [
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        },
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        }
      ],
      "Id": 5
    }
  ],
  "ModuleButtonList": [
    {
      "Mid": 1,
      "Tid": 2,
      "OrderId": 3,
      "MTRelationRemark": "sample string 4",
      "TypeAttrList": [
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        },
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        }
      ],
      "InnerTypeList": [
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        },
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        }
      ],
      "Id": 5
    },
    {
      "Mid": 1,
      "Tid": 2,
      "OrderId": 3,
      "MTRelationRemark": "sample string 4",
      "TypeAttrList": [
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        },
        {
          "Tid": 1,
          "Aid": 1,
          "Mid": 2,
          "MTid": 3,
          "AttrValue": "sample string 4",
          "OrderId": 5,
          "Events": null,
          "IsShow": true,
          "TARelationRemark": "sample string 6",
          "FormAttrName": "sample string 7",
          "FormAttrRemark": "sample string 8",
          "FormTypeName": "sample string 9",
          "FormTypeRemark": "sample string 10",
          "Id": 11
        }
      ],
      "InnerTypeList": [
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        },
        {
          "MTid": 1,
          "Mid": 2,
          "Tid": 3,
          "OrderId": 4,
          "TypeFlagId": 5,
          "ITRelationRemark": "sample string 6",
          "sequence": [
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            },
            {
              "ITid": 1,
              "OrderId": 2,
              "TypeFlagId": 3
            }
          ],
          "items": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "InnerTypeAttrList": [
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            },
            {
              "Tid": 1,
              "Aid": 1,
              "Mid": 2,
              "MTid": 3,
              "ITid": 4,
              "AttrValue": "sample string 5",
              "Events": null,
              "IsShow": true,
              "ITARelationRemark": "sample string 6",
              "FormAttrName": "sample string 7",
              "FormTypeName": "sample string 8",
              "OrderId": 9,
              "TypeFlagId": 10,
              "Id": 11
            }
          ],
          "Id": 7
        }
      ],
      "Id": 5
    }
  ],
  "Id": 4
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: 类型“Newtonsoft.Json.Linq.JToken”是不支持的递归集合数据协定。请考虑修改集合“Newtonsoft.Json.Linq.JToken”的定义,移除对其自身的引用。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: 类型“Newtonsoft.Json.Linq.JToken”是不支持的递归集合数据协定。请考虑修改集合“Newtonsoft.Json.Linq.JToken”的定义,移除对其自身的引用。

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 'FunctionModuleDTO'.

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>