30 lines
659 B
Plaintext
30 lines
659 B
Plaintext
|
syntax = "v1"
|
||
|
|
||
|
import (
|
||
|
"game.api"
|
||
|
"douyin.api"
|
||
|
"wechat.api"
|
||
|
)
|
||
|
|
||
|
type UserId {
|
||
|
UserId uint64 `json:"userId"`
|
||
|
}
|
||
|
|
||
|
type SetAppUserRequest {
|
||
|
Id uint64 `json:"id"`
|
||
|
Nickname string `json:"nickname"`
|
||
|
Avatar string `json:"avatar"`
|
||
|
}
|
||
|
|
||
|
@server (
|
||
|
group: app_user
|
||
|
prefix: /v1/app_user
|
||
|
timeout: 3s // 对当前 Foo 语法块下的所有路由进行超时配置,不需要则请删除此行
|
||
|
maxBytes: 1048576 // 对当前 Foo 语法块下的所有路由添加请求体大小控制,单位为 byte,goctl 版本 >= 1.5.0 才支持
|
||
|
)
|
||
|
service game_open_api-api {
|
||
|
@handler appUserSetUser
|
||
|
post /set_app_account (SetAppUserRequest) returns (UserId)
|
||
|
}
|
||
|
|