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
45 lines
778 B
Plaintext
45 lines
778 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: "工单接口"
|
|
)
|
|
|
|
type (
|
|
CreateTicketReq {
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
TicketResp {
|
|
Id int64 `json:"id"`
|
|
Title string `json:"title"`
|
|
Status int `json:"status"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
TicketDetailReq {
|
|
Id int64 `path:"id"`
|
|
}
|
|
|
|
CreateTicketFollowReq {
|
|
Id int64 `path:"id"`
|
|
Content string `json:"content"`
|
|
}
|
|
)
|
|
|
|
@server (
|
|
prefix: /api/v1/ticket
|
|
group: ticket
|
|
jwt: JwtAuth
|
|
)
|
|
service ppanel-api {
|
|
@handler CreateTicketHandler
|
|
post /create (CreateTicketReq) returns (TicketResp)
|
|
|
|
@handler GetTicketDetailHandler
|
|
get /:id (TicketDetailReq) returns (TicketResp)
|
|
|
|
@handler CreateTicketFollowHandler
|
|
post /:id/follow (CreateTicketFollowReq)
|
|
}
|