七月迭代短暂完结,还有很多后端的关键东西没有弄,这是一版赶时间做的东西
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m26s

This commit is contained in:
2026-07-25 17:06:58 +08:00
parent ad9f613dd6
commit 73f5125d3d
249 changed files with 17137 additions and 877 deletions

View File

@@ -0,0 +1,21 @@
package routes
import (
"github.com/gofiber/fiber/v2"
"github.com/break/junhong_cmp_fiber/internal/handler/admin"
"github.com/break/junhong_cmp_fiber/internal/model/dto"
"github.com/break/junhong_cmp_fiber/pkg/openapi"
)
// registerPackageExpiryRoutes 注册后台和代理共用的临期资产查询路由。
func registerPackageExpiryRoutes(router fiber.Router, handler *admin.AssetHandler, doc *openapi.Generator, basePath string) {
Register(router, doc, basePath, "GET", "/expiring-assets", handler.ListExpiring, RouteSpec{
Summary: "查询临期资产列表",
Description: "分页返回当前账号店铺权限范围内剩余 0 至 15 个上海自然日的卡和设备,并提供卡、设备数量、高亮等级及 0 至 3 天优先标识。企业账号禁止调用。",
Tags: []string{"资产管理"},
Input: new(dto.ExpiringAssetListRequest),
Output: new(dto.ExpiringAssetListResponse),
Auth: true,
})
}