This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -26,8 +26,6 @@ vendor/
|
|||||||
.cache/
|
.cache/
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
.env
|
|
||||||
.env.*
|
|
||||||
!.env.example
|
!.env.example
|
||||||
|
|
||||||
# Log files
|
# Log files
|
||||||
@@ -75,7 +73,6 @@ __debug_bin1621385388
|
|||||||
docs/admin-openapi.yaml
|
docs/admin-openapi.yaml
|
||||||
/api
|
/api
|
||||||
/gendocs
|
/gendocs
|
||||||
.env.local
|
|
||||||
/worker
|
/worker
|
||||||
.opencode/skills/json-canvas
|
.opencode/skills/json-canvas
|
||||||
.opencode/skills/obsidian-bases
|
.opencode/skills/obsidian-bases
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ type AgentRechargeRejectRequest struct {
|
|||||||
RejectionReason string `json:"rejection_reason" validate:"required,max=500" required:"true" description:"驳回原因(必填,最多500字)"`
|
RejectionReason string `json:"rejection_reason" validate:"required,max=500" required:"true" description:"驳回原因(必填,最多500字)"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AgentRechargeRejectParams 驳回代理充值订单聚合参数(用于文档生成)
|
||||||
|
type AgentRechargeRejectParams struct {
|
||||||
|
IDReq
|
||||||
|
AgentRechargeRejectRequest
|
||||||
|
}
|
||||||
|
|
||||||
// AgentRechargeListRequest 代理充值记录列表请求
|
// AgentRechargeListRequest 代理充值记录列表请求
|
||||||
type AgentRechargeListRequest struct {
|
type AgentRechargeListRequest struct {
|
||||||
Page int `json:"page" query:"page" validate:"omitempty,min=1" minimum:"1" description:"页码,默认1"`
|
Page int `json:"page" query:"page" validate:"omitempty,min=1" minimum:"1" description:"页码,默认1"`
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ func registerAgentRechargeRoutes(router fiber.Router, handler *admin.AgentRechar
|
|||||||
Register(group, doc, groupPath, "POST", "/:id/reject", handler.Reject, RouteSpec{
|
Register(group, doc, groupPath, "POST", "/:id/reject", handler.Reject, RouteSpec{
|
||||||
Summary: "驳回代理充值订单",
|
Summary: "驳回代理充值订单",
|
||||||
Tags: []string{"代理预充值"},
|
Tags: []string{"代理预充值"},
|
||||||
Input: new(dto.AgentRechargeRejectRequest),
|
Input: new(dto.AgentRechargeRejectParams),
|
||||||
Output: nil,
|
Output: nil,
|
||||||
Auth: true,
|
Auth: true,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user