GET api/UserSkill/GetSkillList?CookCode={CookCode}&CustID={CustID}&ParentSkillId={ParentSkillId}&IsContainAll={IsContainAll}

【可用】获取技能类别列表

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CookCode

登录Token

string

Default value is

CustID

用户ID

string

Default value is

ParentSkillId

父级技能类别ID(0:一级技能类别列表,非0:取当前一级技能下的二级技能类别列表)

integer

Default value is -1

IsContainAll

是否包含“全部”类别(0:不包含,1:包含,该参数只针对二级分类,一级分类始终不会包含“全部”)

integer

Default value is 1

Body Parameters

None.

Response Information

Resource Description

RequestResultOfListOfSkill
NameDescriptionTypeAdditional information
ResultCode

integer

None.

Message

string

None.

Data

Collection of Skill

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Message": "sample string 2",
  "Data": [
    {
      "Id": 1,
      "SkillName": "sample string 2",
      "ParentSkillID": 3,
      "Comment": "sample string 4",
      "CreateTime": "2020-10-29T07:03:58.6844751+08:00",
      "IsVaild": 6,
      "OrderNo": 7,
      "UpdateTime": "2020-10-29T07:03:58.6844751+08:00",
      "SkillPicture": "sample string 9"
    },
    {
      "Id": 1,
      "SkillName": "sample string 2",
      "ParentSkillID": 3,
      "Comment": "sample string 4",
      "CreateTime": "2020-10-29T07:03:58.6844751+08:00",
      "IsVaild": 6,
      "OrderNo": 7,
      "UpdateTime": "2020-10-29T07:03:58.6844751+08:00",
      "SkillPicture": "sample string 9"
    }
  ]
}

text/html

Sample:
{"ResultCode":1,"Message":"sample string 2","Data":[{"Id":1,"SkillName":"sample string 2","ParentSkillID":3,"Comment":"sample string 4","CreateTime":"2020-10-29T07:03:58.6844751+08:00","IsVaild":6,"OrderNo":7,"UpdateTime":"2020-10-29T07:03:58.6844751+08:00","SkillPicture":"sample string 9"},{"Id":1,"SkillName":"sample string 2","ParentSkillID":3,"Comment":"sample string 4","CreateTime":"2020-10-29T07:03:58.6844751+08:00","IsVaild":6,"OrderNo":7,"UpdateTime":"2020-10-29T07:03:58.6844751+08:00","SkillPicture":"sample string 9"}]}

application/xml, text/xml

Sample:
<RequestResultOfArrayOfSkill9YWRqD_Pw xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MF.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MF.Models">
    <d2p1:Skill>
      <d2p1:Comment>sample string 4</d2p1:Comment>
      <d2p1:CreateTime>2020-10-29T07:03:58.6844751+08:00</d2p1:CreateTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsVaild>6</d2p1:IsVaild>
      <d2p1:OrderNo>7</d2p1:OrderNo>
      <d2p1:ParentSkillID>3</d2p1:ParentSkillID>
      <d2p1:SkillName>sample string 2</d2p1:SkillName>
      <d2p1:SkillPicture>sample string 9</d2p1:SkillPicture>
      <d2p1:UpdateTime>2020-10-29T07:03:58.6844751+08:00</d2p1:UpdateTime>
    </d2p1:Skill>
    <d2p1:Skill>
      <d2p1:Comment>sample string 4</d2p1:Comment>
      <d2p1:CreateTime>2020-10-29T07:03:58.6844751+08:00</d2p1:CreateTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsVaild>6</d2p1:IsVaild>
      <d2p1:OrderNo>7</d2p1:OrderNo>
      <d2p1:ParentSkillID>3</d2p1:ParentSkillID>
      <d2p1:SkillName>sample string 2</d2p1:SkillName>
      <d2p1:SkillPicture>sample string 9</d2p1:SkillPicture>
      <d2p1:UpdateTime>2020-10-29T07:03:58.6844751+08:00</d2p1:UpdateTime>
    </d2p1:Skill>
  </Data>
  <Message>sample string 2</Message>
  <ResultCode>1</ResultCode>
</RequestResultOfArrayOfSkill9YWRqD_Pw>