-
Notifications
You must be signed in to change notification settings - Fork 2
API Docs
For better visualization, please visit Maintainman Doc
获取最新公告
获取最新公告 分页 强制逆序 开始时间 结束时间 之内
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
offset | query | 偏移量 | No | integer |
limit | query | 每页数据量 | No | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建公告
创建公告
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 创建公告请求 | Yes | model.CreateAnnounceRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取公告列表
获取公告列表 分页 可按标题 开始时间 结束时间 (时间之内|之外 两种模式)过滤
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
title | query | 标题 | No | string |
start_time | query | 开始时间; unix timestamp in seconds (UTC); -1代表不限; 含本数 | No | string |
end_time | query | 结束时间; unix timestamp in seconds (UTC); -1代表不限; 含本数 | No | string |
inclusive | query | true: 查询开始时间晚于start,且结束时间早于end的(在某段时间内开始并结束的); false: 查询开始时间早于start,且结束时间晚于end的(在某段时间内都能看到的) | No | boolean |
order_by | query | 排序字段 (默认为ID正序) 只接受 | No | string |
offset | query | 偏移量 (默认为0) | No | integer |
limit | query | 每页数据量 (默认为50) | No | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取公告
获取公告
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 公告ID | Yes | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
更新公告
更新公告
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 公告ID | Yes | integer |
body | body | 更新公告请求 | Yes | model.UpdateAnnounceRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除公告
删除公告
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 公告ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
点击公告
点击公告 增加点击量 默认单个用户单篇文章12h只能点击一次
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 公告ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除评论
删除评论 删除者必须是评论的创建者
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 评论id | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除评论(管理员)
删除评论
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 评论id | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建分组
创建分组
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 创建分组请求 | Yes | model.CreateDivisionRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某分组信息
通过ID获取某分组信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 分组ID | Yes | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
更新分组
更新分组
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 更新分组请求 | Yes | model.UpdateDivisionRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除分组
删除分组
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 分组ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取所有物品信息
获取所有物品信息 分页
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
order_by | query | 排序字段 | No | string |
offset | query | 偏移量 | No | integer |
limit | query | 每页数据量 | No | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建物品
创建物品
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
item | body | 物品信息 | Yes | model.CreateItemRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某ID物品信息
通过ID获取某物品信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 物品ID | Yes | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
添加物品数量(进货)
添加物品数量(进货)
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 物品ID | Yes | integer |
body | body | 物品数量 | Yes | model.AddItemRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除物品
删除物品
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 物品ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某名称物品信息
通过名称获取某物品信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 物品名称 | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取大概是某些名称的物品们的信息
通过名称获取大概是某些名称的物品们的信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 物品名称 | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
用户登录
用户登录
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 登录信息 | Yes | model.LoginRequest |
Code | Description | Schema |
---|---|---|
200 | JWT Token | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建订单
创建订单
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 请求参数 | Yes | model.CreateOrderRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取所有订单
获取所有订单 分页 默认正序 可按照 标题 用户 订单状态 多个Tag(与|或 两种模式)过滤 状态 0:非法 1:待处理 2:已接单 3:已完成 4:上报中 5:挂单 6:已取消 7:已拒绝 8:已评价
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
title | query | 标题 | No | string |
user_id | query | 用户ID | No | integer |
status | query | 订单状态 0:非法 1:待处理 2:已接单 3:已完成 4:上报中 5:挂单 6:已取消 7:已拒绝 8:已评价 | No | string |
tags | query | 若干 Tag 的 ID | No | [ string ] |
conjunctve | query | true: 查询包含所有Tag的订单, false: 查询包含任一Tag的订单 | No | boolean |
order_by | query | 排序字段 (默认为ID正序) 只接受 | No | string |
offset | query | 偏移量 (默认为0) | No | integer |
limit | query | 每页数据量 (默认为50) | No | integer |
Code | Description | Schema |
---|---|---|
200 | 返回结果 带Tag | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取当前维修工的订单
获取当前维修工的订单 分页 默认逆序 可按照是否本人正在维修过滤
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
current | query | 是否本人正在维修 | Yes | boolean |
order_by | query | 排序字段 (默认为ID正序) 只接受 | No | string |
offset | query | 偏移量 (默认为0) | No | integer |
limit | query | 每页数据量 (默认为50) | No | integer |
Code | Description | Schema |
---|---|---|
200 | 返回结果 带Tag | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某维修工的订单
通过维修工ID获取某维修工的订单 分页 默认逆序 可按照是否该人正在维修过滤
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 维修工ID | Yes | integer |
current | query | 是否本人正在维修 | Yes | boolean |
order_by | query | 排序字段 (默认为ID正序) 只接受 | No | string |
offset | query | 偏移量 (默认为0) | No | integer |
limit | query | 每页数据量 (默认为50) | No | integer |
Code | Description | Schema |
---|---|---|
200 | 返回结果 带Tag | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取当前用户的订单
获取当前用户的订单 分页 默认逆序 可按照订单状态过滤 状态 0:非法 1:待处理 2:已接单 3:已完成 4:上报中 5:挂单 6:已取消 7:已拒绝 8:已评价
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
status | query | 订单状态 0:非法 1:待处理 2:已接单 3:已完成 4:上报中 5:挂单 6:已取消 7:已拒绝 8:已评价 | No | integer |
order_by | query | 排序字段 (默认为ID正序) 只接受 | No | string |
offset | query | 偏移量 (默认为0) | No | integer |
limit | query | 每页数据量 (默认为50) | No | integer |
Code | Description | Schema |
---|---|---|
200 | 返回结果 带Tag | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某个订单
通过ID获取某个订单
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
200 | 返回结果 带Tag 带Comment | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
更新订单
更新订单 操作者需为订单创建者
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
body | body | 请求参数 | Yes | model.UpdateOrderRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
评价订单
评价订单 从 已完成 到 已评价
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
appraisal | query | 评价分数 | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
指派订单
指派订单 从 待处理 到 已接单
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
repairer | query | 维修工ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
取消订单
取消订单 从 除已完成 已评价外的状态 到 已取消 操作者只能是订单创建者
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取订单的评论信息
获取订单的评论信息 分页 操作者必须是订单的创建者 或 曾经被分配给该订单的维修工
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单id | Yes | integer |
order_by | query | 排序字段 | No | string |
offset | query | 偏移量 | No | integer |
limit | query | 每页数据量 | No | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建评论
创建评论 创建者必须是订单的创建者 或 曾经被分配给该订单的维修工
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单id | Yes | integer |
body | body | 评论信息 | Yes | model.CreateCommentRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取订单的评论信息(管理员)
获取任意订单的评论信息 分页
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单id | Yes | integer |
order_by | query | 排序字段 | No | string |
offset | query | 偏移量 | No | integer |
limit | query | 每页数据量 | No | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建评论(管理员)
创建评论
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单id | Yes | integer |
body | body | 评论信息 | Yes | model.CreateCommentRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
完成订单
完成订单 从 已接单 到 已完成 操作者只能是当前维修工
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
消耗物品数量(订单消耗)
消耗物品数量(订单消耗)
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
body | body | 物品数量 | Yes | model.ConsumeItemRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
更新订单(管理员)
更新订单(管理员)
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
body | body | 请求参数 | Yes | model.UpdateOrderRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
挂起订单
挂起订单 从 待处理 到 挂单
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
拒绝订单
拒绝订单 从 待处理 到 已拒绝
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
释放订单
释放订单 从 已接单 已完成 上报中 挂单 已拒绝 到 待处理
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
上报订单
上报订单 从 已接单 到 上报中 操作者只能是当前维修工
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
自指派订单
自指派订单 从 待处理 到 已接单
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 订单ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取所有权限信息
获取所有权限信息 不分页
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取当前用户权限信息
获取当前用户权限信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 权限名 | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
用户注册
用户注册
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 注册信息 | Yes | model.RegisterUserRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
用户登录续期
用户登录续期
Code | Description | Schema |
---|---|---|
200 | JWT Token | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取当前用户角色信息
获取当前用户角色信息
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
更新角色
更新角色
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 更新角色请求 | Yes | model.UpdateRoleRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建角色
创建角色
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 创建角色请求 | Yes | model.CreateRoleRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取所有角色
获取所有角色 不分页
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某角色信息
通过角色名获取某角色信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 角色名 | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除角色
删除角色
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 角色名 | Yes | string |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
设置默认角色
设置默认角色(用户注册时的默认角色)
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 角色名 | Yes | string |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
设置游客角色
设置游客角色(用户未登录时的默认角色)
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 角色名 | Yes | string |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建标签
创建标签
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 创建标签请求 | Yes | model.CreateTagRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取所有标签分类
获取所有标签分类
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某分类下的所有标签
通过分类名获取某分类下的所有标签
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | 分类名 | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某标签信息
通过ID获取某标签信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 标签ID | Yes | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除标签
通过ID删除标签
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 标签ID | Yes | integer |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取当前登录用户信息
获取当前登录用户信息 附带角色和权限信息
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
更新当前用户
更新当前用户 除角色和分组外其他字段可更新
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 更新信息 | Yes | model.UpdateUserRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
创建用户(管理员)
创建用户 所有字段都可设置 普通用户应使用注册,而不是这个创建
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 创建信息 | Yes | model.CreateUserRequest |
Code | Description | Schema |
---|---|---|
201 | Created | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取所有用户信息
获取所有用户信息 用户名 昵称查找 分页
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | query | 用户名 | No | string |
display_name | query | 昵称 | No | string |
order_by | query | 排序字段 (默认为ID正序) 只接受 | No | string |
offset | query | 偏移量 (默认为0) | No | integer |
limit | query | 每页数据量 (默认为50) | No | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某分组下的所有用户信息
获取某分组下的所有用户信息 分页
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 分组ID | Yes | integer |
order_by | query | 排序字段 (默认为ID正序) 只接受 | No | string |
offset | query | 偏移量 (默认为0) | No | integer |
limit | query | 每页数据量 (默认为50) | No | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
获取某用户信息
通过ID获取某用户信息
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 用户ID | Yes | integer |
Code | Description | Schema |
---|---|---|
200 | OK | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
更新用户(管理员)
通过ID更新用户 所有字段都可更新
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 用户ID | Yes | string |
body | body | 更新信息 | Yes | model.UpdateUserRequest |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
删除用户(管理员)
通过ID删除用户
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | path | 用户ID | Yes | string |
Code | Description | Schema |
---|---|---|
204 | No Content | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
微信登录
微信登录
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 登录信息 | Yes | model.WxLoginRequest |
Code | Description | Schema |
---|---|---|
200 | JWT Token | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
微信注册并登陆
微信注册并登陆
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
body | body | 登录信息 | Yes | model.WxRegisterRequest |
Code | Description | Schema |
---|---|---|
200 | JWT Token | model.ApiJson & object |
400 | Bad Request | model.ApiJson & object |
401 | Unauthorized | model.ApiJson & object |
403 | Forbidden | model.ApiJson & object |
404 | Not Found | model.ApiJson & object |
422 | Unprocessable Entity | model.ApiJson & object |
500 | Internal Server Error | model.ApiJson & object |
Name | Type | Description | Required |
---|---|---|---|
item_id | integer | No | |
num | integer | No | |
price | number | No |
Name | Type | Description | Required |
---|---|---|---|
content | string | No | |
created_at | integer | unix timestamp in seconds (UTC) | No |
end_time | integer | unix timestamp in seconds (UTC) | No |
hits | integer | 点击数 | No |
id | integer | No | |
start_time | integer | unix timestamp in seconds (UTC) | No |
title | string | No | |
updated_at | integer | unix timestamp in seconds (UTC) | No |
Name | Type | Description | Required |
---|---|---|---|
code | integer | No | |
data | No | ||
msg | string | No | |
status | boolean | No |
Name | Type | Description | Required |
---|---|---|---|
content | string | No | |
created_at | integer | unix timestamp in seconds (UTC) | No |
id | integer | No | |
order_id | integer | No | |
sequence_num | integer | 发言在该订单内的序号 | No |
user_id | integer | No | |
user_name | string | No |
Name | Type | Description | Required |
---|---|---|---|
item_id | integer | No | |
num | integer | No | |
order_id | integer | No | |
price | number | No |
Name | Type | Description | Required |
---|---|---|---|
content | string | Yes | |
end_time | integer | unix timestamp in seconds (UTC); -1代表不限; 含本数; 必须大于start | Yes |
start_time | integer | unix timestamp in seconds (UTC); -1代表不限; 含本数 | Yes |
title | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
content | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
name | string | Yes | |
parent_id | integer | No |
Name | Type | Description | Required |
---|---|---|---|
discription | string | No | |
name | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
address | string | Yes | |
contact_name | string | Yes | |
contact_phone | string | Yes | |
content | string | No | |
tags | [ integer ] | 若干 Tag 的 ID | No |
title | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
display_name | string | Yes | |
inheritance | [ string ] | No | |
name | string | Yes | |
permissions | [ string ] | No | |
position | integer | No |
Name | Type | Description | Required |
---|---|---|---|
congener | integer | 允许与同Sort的Tag共存的数量 0:不限 n:只允许n个(含自身) | No |
level | integer | Yes | |
name | string | Yes | |
sort | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
display_name | string | Yes | |
division_id | integer | No | |
string | No | ||
name | string | Yes | |
password | string | Yes | |
phone | string | No | |
real_name | string | No | |
role_name | string | No |
Name | Type | Description | Required |
---|---|---|---|
children | [ model.DivisionJson ] | No | |
id | integer | No | |
name | string | No | |
parent_id | integer | 父分组ID | No |
Name | Type | Description | Required |
---|---|---|---|
count | integer | No | |
discription | string | No | |
id | integer | No | |
name | string | No |
Name | Type | Description | Required |
---|---|---|---|
account | string | Yes | |
password | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
address | string | No | |
allow_comment | boolean | No | |
appraisal | integer | No | |
comments | [ model.CommentJson ] | No | |
contact_name | string | No | |
contact_phone | string | No | |
content | string | No | |
created_at | integer | unix timestamp in seconds (UTC) | No |
id | integer | No | |
status | integer | No | |
tags | [ model.TagJson ] | No | |
title | string | No | |
updated_at | integer | unix timestamp in seconds (UTC) | No |
user | model.UserJson | No | |
user_id | integer | No |
Name | Type | Description | Required |
---|---|---|---|
display_name | string | No | |
name | string | No |
Name | Type | Description | Required |
---|---|---|---|
display_name | string | Yes | |
string | No | ||
name | string | Yes | |
password | string | Yes | |
phone | string | No | |
real_name | string | No |
Name | Type | Description | Required |
---|---|---|---|
default | boolean | No | |
display_name | string | No | |
guest | boolean | No | |
inheritance | [ string ] | No | |
name | string | No | |
permissions | [ model.PermissionJson ] | No |
Name | Type | Description | Required |
---|---|---|---|
congener | integer | 允许与同Sort的Tag共存的数量 0:不限 n:只允许n个(含自身) | No |
id | integer | No | |
level | integer | No | |
name | string | No | |
sort | string | No |
Name | Type | Description | Required |
---|---|---|---|
content | string | No | |
end_time | integer | unix timestamp in seconds (UTC); -1代表不限; 含本数 | Yes |
start_time | integer | unix timestamp in seconds (UTC); -1代表不限; 含本数 | Yes |
title | string | No |
Name | Type | Description | Required |
---|---|---|---|
name | string | No | |
parent_id | integer | No |
Name | Type | Description | Required |
---|---|---|---|
add_tags | [ integer ] | 若干需要添加的 Tag 的 ID | No |
address | string | No | |
contact_name | string | No | |
contact_phone | string | No | |
content | string | No | |
del_tags | [ integer ] | 若干需要删除的 Tag 的 ID | No |
title | string | No |
Name | Type | Description | Required |
---|---|---|---|
add_inheritance | [ string ] | No | |
add_permissions | [ string ] | No | |
del_inheritance | [ string ] | No | |
del_permissions | [ string ] | No | |
display_name | string | Yes | |
position | integer | No |
Name | Type | Description | Required |
---|---|---|---|
display_name | string | No | |
division_id | integer | No | |
string | No | ||
name | string | No | |
password | string | No | |
phone | string | No | |
real_name | string | No | |
role_name | string | No |
Name | Type | Description | Required |
---|---|---|---|
display_name | string | 昵称 | No |
division | model.DivisionJson | No | |
string | No | ||
id | integer | No | |
login_time | integer | unix timestamp in seconds (UTC) | No |
name | string | No | |
phone | string | No | |
real_name | string | No | |
role | model.RoleJson | No | |
user_role | string | No |
Name | Type | Description | Required |
---|---|---|---|
code | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
code | string | Yes | |
display_name | string | Yes | |
string | No | ||
name | string | Yes | |
password | string | Yes | |
phone | string | No | |
real_name | string | No |