修复
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m33s

This commit is contained in:
2026-06-26 13:11:39 +09:00
parent 781e82441d
commit ab9da7bb33
3 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View File

@@ -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

View File

@@ -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"`

View File

@@ -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,
}) })