GetDataSourceItemList

≥4.5

接口功能

查询此Application下的指定List的items

请求参数
参数 类型 说明
ListName String 指定dataSource
State int 根据 State 过滤返回值,默认返回有效值。-1:全部,0:有效,1:无效, 参数State对应的是item的state, 如果list 是disabled 该API返回Data为空
返回参数
List<DataSourceDetail>

public class DataSourceDetail : IExtensibleDataObject
{
  private Guid DataSourceTypeId;
  private string DataSourceTypeName;
  private string Group;
  private string GroupID;
  private Guid Id;
  private string Key;
  private string Name;
  private int Order;
  private int State;
  private string Value;
}
返回示例
{
  "StatusCode": 200,
  "Info": "Request (or process) succeeded",
  "Data": [
    {
      "Id": "dddb40ae-7fae-42fc-82a2-523daf9da36d",
      "Key": "Dev",
      "Value": "Dev",
      "Name": null,
      "Order": 1,
      "State": 0,
      "DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
      "DataSourceTypeName": "Environment",
      "Group": "Default",
      "GroupId": "00000000-0000-0000-0000-000000000000"
    },
    {
      "Id": "a0e98102-2ae3-4617-bd8d-5f300888d90a",
      "Key": "QA",
      "Value": "QA",
      "Name": null,
      "Order": 2,
      "State": 0,
      "DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
      "DataSourceTypeName": "Environment",
      "Group": "Default",
      "GroupId": "00000000-0000-0000-0000-000000000000"
    },
    {
      "Id": "a344b7e1-37a5-4168-95ae-4482efa14386",
      "Key": "Stage",
      "Value": "Stage",
      "Name": null,
      "Order": 3,
      "State": 0,
      "DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
      "DataSourceTypeName": "Environment",
      "Group": "Default",
      "GroupId": "00000000-0000-0000-0000-000000000000"
    },
    {
      "Id": "7a2d05fb-b133-448e-94aa-bcd063b150ed",
      "Key": "Product",
      "Value": "Product",
      "Name": null,
      "Order": 4,
      "State": 1,
      "DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
      "DataSourceTypeName": "Environment",
      "Group": "Default",
      "GroupId": "00000000-0000-0000-0000-000000000000"
    }
  ]
}
参数示例
{
  "ListName": "status",
  "State": "-1"
}
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2023-02-02 10:40:12

results matching ""

    No results matching ""