门诊管理

门诊列表: /clinics GET

请求参数

参数名 示列值 类型 必须 说明 默认值
page 1 number 当前页数 1
pageSize 10 number 每页条数 10
submitStatus 1 number 提交状态:(0:未提交,1:已提交)
name 名称 string 门诊名称
organizationId 1 number 组织 id
sort -submitAt string 排序。多个排序字段用,号隔开。sort=-a,b
expand 'program' string 获取指定子资源数据: 'creator'
attributes ["id", "name"] array 本资源的字段。不定义该字段时返回所有字段;空数组不返回字段

返回参数

参数名 示列值 说明
page 1 当前页数
pageSize 10 每页条数
limit 10 同 pageSize
offset 2 起始条数
total 3231 符合条件的总数量
items [{},{}] 返回数据项
  • items: 门诊信息
参数名 示列值 说明
id 1 id
name demo 门诊名称
openingDate 2020-2-2 开业日期
businessHours 09:00-18:00 营业时间
serviceTel xxxx 客服电话
images [] 宣传图
province 广东省
city 深证市
address xxxx 详细地址

返回示列

HTTP/1.1 200 OK
{
    "items": [
        {
            "createdAt": 1678514145,
            "updatedAt": 1678514145,
            "id": 2,
            "creatorId": 5,
            "programId": 3,
            "name": "dddddd",
            "openingDate": "2020-2-2",
            "businessHours": "09:00-18:00",
            "serviceTel": "xxxx",
            "images": [],
            "province": "广东省",
            "city": "深圳市",
            "address": "xxxx"
        }
    ],
    "limit": 10,
    "offset": 0,
    "page": 1,
    "pageSize": 10,
    "total": 1
}

所有门诊: /listAll/clinics GET

请求参数

参数名 示列值 类型 必须 说明 默认值
name 门诊名称 string 门诊名称
sort -submitAt string 排序。多个排序字段用,号隔开。sort=-a,b
expand 'program' string 获取指定子资源数据: 'creator'
attributes ["id", "name"] array 本资源的字段。不定义该字段时返回所有字段;空数组不返回字段

返回示列

HTTP/1.1 200 OK
[
    {
        "createdAt": 1678514145,
        "updatedAt": 1678514145,
        "id": 2,
        "creatorId": 5,
        "name": "dddddd",
        "openingDate": "2020-2-2",
        "businessHours": "09:00-18:00",
        "serviceTel": "xxxx",
        "images": [],
        "province": "广东省",
        "city": "深圳市",
        "address": "xxxx"
    }
]

编辑门诊: /clinics/:id PUT

请求参数

参数名 示列值 类型 必须 说明
name 123456 string 名称

返回结果:

HTTP/1.1 200 OK
[
    {
        "createdAt": 1678514145,
        "updatedAt": 1678514145,
        "id": 2,
        "creatorId": 5,
        "name": "dddddd",
        "openingDate": "2020-2-2",
        "businessHours": "09:00-18:00",
        "serviceTel": "xxxx",
        "images": [],
        "province": "广东省",
        "city": "深圳市",
        "address": "xxxx"
    }
]

门诊详情: /clinics/:id GET

请求参数

参数名 示列值 类型 必须 说明 默认值
id 1 number id
expand 'program' string 获取指定子资源数据: 'program,organization, creator'
attributes ["id", "name"] array 本资源的字段。不定义该字段时返回所有字段;空数组不返回字段

返回结果:

HTTP/1.1 200 OK
  {
      "createdAt": 1678514145,
      "updatedAt": 1678514145,
      "id": 2,
      "creatorId": 5,
      "name": "dddddd",
      "openingDate": "2020-2-2",
      "businessHours": "09:00-18:00",
      "serviceTel": "xxxx",
      "images": [],
      "province": "广东省",
      "city": "深圳市",
      "address": "xxxx"
  }