后台面板上线

This commit is contained in:
2025-06-03 17:32:12 +08:00
parent 8e4a0d3dac
commit c0dddc67e5
30 changed files with 1891 additions and 1385 deletions

View File

@@ -12,6 +12,7 @@ import (
admin_platform_user "tyc-server/app/main/api/internal/handler/admin_platform_user"
admin_product "tyc-server/app/main/api/internal/handler/admin_product"
admin_promotion "tyc-server/app/main/api/internal/handler/admin_promotion"
admin_query "tyc-server/app/main/api/internal/handler/admin_query"
admin_role "tyc-server/app/main/api/internal/handler/admin_role"
admin_user "tyc-server/app/main/api/internal/handler/admin_user"
auth "tyc-server/app/main/api/internal/handler/auth"
@@ -327,6 +328,19 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
rest.WithPrefix("/api/v1/admin/promotion/stats"),
)
server.AddRoutes(
[]rest.Route{
{
// 获取查询详情
Method: http.MethodGet,
Path: "/detail/:order_id",
Handler: admin_query.AdminGetQueryDetailByOrderIdHandler(serverCtx),
},
},
rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
rest.WithPrefix("/api/v1/admin/query"),
)
server.AddRoutes(
[]rest.Route{
{