31 lines
679 B
Plaintext
Raw Normal View History

2025-01-20 01:55:44 +08:00
syntax = "v1"
import (
"game.api"
"douyin.api"
"wechat.api"
2025-01-20 17:36:03 +08:00
"common.api"
2025-01-20 01:55:44 +08:00
)
type UserId {
UserId uint64 `json:"userId"`
}
type SetAppUserRequest {
Nickname string `json:"nickname"`
Avatar string `json:"avatar"`
}
@server (
group: app_user
prefix: /v1/app_user
2025-01-20 10:10:08 +08:00
jwt: Auth // 开启 jwt 认证
2025-01-20 01:55:44 +08:00
timeout: 3s // 对当前 Foo 语法块下的所有路由进行超时配置,不需要则请删除此行
maxBytes: 1048576 // 对当前 Foo 语法块下的所有路由添加请求体大小控制,单位为 byte,goctl 版本 >= 1.5.0 才支持
)
service game_open_api-api {
@handler appUserSetUser
2025-01-20 17:36:03 +08:00
post /set_app_account (SetAppUserRequest) returns (Base)
2025-01-20 01:55:44 +08:00
}