POST api/BasicApi/DataDictionary/Add
新建 数据字典参数
Request Information
URI Parameters
None.
Body Parameters
要新建的数据字典参数
Basic_DataDictionaryName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Code | string |
None. |
|
Name | string |
None. |
|
ParentId | globally unique identifier |
None. |
|
StringValue | string |
None. |
|
IntValue | integer |
None. |
|
FloatValue | decimal number |
None. |
|
BoolValue | boolean |
None. |
|
DateTimeValue | date |
None. |
|
Description | string |
None. |
|
SortOrder | integer |
None. |
|
IsScoreItem | boolean |
None. |
|
CreatedById | globally unique identifier |
None. |
|
CreatedAt | date |
None. |
|
UpdatedById | globally unique identifier |
None. |
|
UpdatedAt | date |
None. |
|
Deleted | boolean |
None. |
|
DeletedById | globally unique identifier |
None. |
|
DeletedAt | date |
None. |
|
Basic_DataDictionary1 | Collection of Basic_DataDictionary |
None. |
|
Basic_DataDictionary2 | Basic_DataDictionary |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "fd2203bb-d368-49af-8362-5b8eefd582cb", "Code": "sample string 2", "Name": "sample string 3", "ParentId": "b8ddf3d7-0ef4-448e-b4e8-c0369af37cb5", "StringValue": "sample string 4", "IntValue": 1, "FloatValue": 1.1, "BoolValue": true, "DateTimeValue": "2025-07-05T07:06:44.202227+08:00", "Description": "sample string 5", "SortOrder": 6, "IsScoreItem": true, "Basic_DataDictionary1": [] }
text/javascript
Sample:
{"Id":"fd2203bb-d368-49af-8362-5b8eefd582cb","Code":"sample string 2","Name":"sample string 3","ParentId":"b8ddf3d7-0ef4-448e-b4e8-c0369af37cb5","StringValue":"sample string 4","IntValue":1,"FloatValue":1.1,"BoolValue":true,"DateTimeValue":"2025-07-05T07:06:44.202227+08:00","Description":"sample string 5","SortOrder":6,"IsScoreItem":true,"Basic_DataDictionary1":[]}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
成功返回新建的数据字典参数
WebApiResultOfDtoBasic_DataDictionaryName | Description | Type | Additional information |
---|---|---|---|
Data | DtoBasic_DataDictionary |
None. |
|
HasErrors | boolean |
None. |
|
Success | boolean |
None. |
|
AllMessages | string |
None. |
|
Messages | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "Id": "151fb0e3-4e11-4dc5-a806-41cea7da483e", "Code": "sample string 2", "Name": "sample string 3", "ParentId": "6806cb82-e904-4e6d-9f47-09568f7eeb0d", "StringValue": "sample string 4", "IntValue": 1, "FloatValue": 1.1, "BoolValue": true, "DateTimeValue": "2025-07-05T07:06:44.2158908+08:00", "Description": "sample string 5", "SortOrder": 6, "CreatedById": "befada90-b42c-4b3b-93b0-69e477f8cd62", "CreatedAt": "2025-07-05T07:06:44.2158908+08:00", "UpdatedById": "9970af99-aa07-4534-9664-cb35cddcd27d", "UpdatedAt": "2025-07-05T07:06:44.2158908+08:00", "Deleted": true, "DeletedById": "c56c3336-1a23-46ec-ae50-8d0474309891", "DeletedAt": "2025-07-05T07:06:44.2158908+08:00" }, "HasErrors": true, "Success": false, "AllMessages": "sample string 1\r\nsample string 2", "Messages": [ "sample string 1", "sample string 2" ] }
text/javascript
Sample:
{"Data":{"Id":"151fb0e3-4e11-4dc5-a806-41cea7da483e","Code":"sample string 2","Name":"sample string 3","ParentId":"6806cb82-e904-4e6d-9f47-09568f7eeb0d","StringValue":"sample string 4","IntValue":1,"FloatValue":1.1,"BoolValue":true,"DateTimeValue":"2025-07-05T07:06:44.2158908+08:00","Description":"sample string 5","SortOrder":6,"CreatedById":"befada90-b42c-4b3b-93b0-69e477f8cd62","CreatedAt":"2025-07-05T07:06:44.2158908+08:00","UpdatedById":"9970af99-aa07-4534-9664-cb35cddcd27d","UpdatedAt":"2025-07-05T07:06:44.2158908+08:00","Deleted":true,"DeletedById":"c56c3336-1a23-46ec-ae50-8d0474309891","DeletedAt":"2025-07-05T07:06:44.2158908+08:00"},"HasErrors":true,"Success":false,"AllMessages":"sample string 1\r\nsample string 2","Messages":["sample string 1","sample string 2"]}