zero-ppanel/apps/admin/desc/ticket.api
shanshanzhong 9dacd85a89
Some checks failed
Build docker and publish / prepare (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:ppanel-admin name:admin]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:ppanel-api name:api]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:ppanel-node name:node]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:ppanel-queue name:queue]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:ppanel-scheduler name:scheduler]) (push) Has been cancelled
Build docker and publish / deploy (push) Has been cancelled
Build docker and publish / notify (push) Has been cancelled
初始化
2026-02-26 04:12:43 -08:00

60 lines
1.2 KiB
Plaintext

syntax = "v1"
info (
title: "工单管理"
)
type (
AdminTicketListReq {
Page int `form:"page,default=1"`
PageSize int `form:"page_size,default=20"`
Status int `form:"status,optional"`
}
AdminTicketResp {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
Title string `json:"title"`
Status int `json:"status"`
CreatedAt string `json:"created_at"`
}
AdminTicketListResp {
Total int64 `json:"total"`
List []AdminTicketResp `json:"list"`
}
AdminTicketDetailReq {
Id int64 `path:"id"`
}
AdminUpdateTicketStatusReq {
Id int64 `path:"id"`
Status int `json:"status"`
}
AdminCreateTicketFollowReq {
Id int64 `path:"id"`
Content string `json:"content"`
}
)
@server (
prefix: /api/v1/admin/ticket
group: ticket
jwt: JwtAuth
)
service ppaneladmin {
@handler GetTicketListHandler
get /list (AdminTicketListReq) returns (AdminTicketListResp)
@handler GetTicketDetailHandler
get /:id (AdminTicketDetailReq) returns (AdminTicketResp)
@handler UpdateTicketStatusHandler
put /:id/status (AdminUpdateTicketStatusReq)
@handler CreateTicketFollowHandler
post /:id/follow (AdminCreateTicketFollowReq)
}