增加提取castile到游戏的数据库表,定义API接口等;
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.7.6
|
||||
// goctl 1.7.3
|
||||
|
||||
package handler
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
kgen "nova_task/internal/handler/kgen"
|
||||
stakepoint "nova_task/internal/handler/stakepoint"
|
||||
task "nova_task/internal/handler/task"
|
||||
transfercastile "nova_task/internal/handler/transfercastile"
|
||||
"nova_task/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
@@ -235,4 +236,23 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
||||
rest.WithPrefix("/gapi/task/v1"),
|
||||
)
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
// 获取提取castile到游戏的记录
|
||||
Method: http.MethodPost,
|
||||
Path: "/list",
|
||||
Handler: transfercastile.TransferCastileToGameListHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
// 提取castile到游戏
|
||||
Method: http.MethodPost,
|
||||
Path: "/save",
|
||||
Handler: transfercastile.TransferCastileToGameHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
||||
rest.WithPrefix("/gapi/transfercastile/v1"),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user