firest commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
author: "Asadz"
|
||||
date: "2024-06-19"
|
||||
version: "1.0"
|
||||
)
|
||||
|
||||
type (
|
||||
UserInfoReq {
|
||||
UserId int64 `json:"userId"`
|
||||
}
|
||||
UserInfoResp {
|
||||
UserId int64 `json:"userId"`
|
||||
Nickname string `json:"nickname"`
|
||||
}
|
||||
)
|
||||
|
||||
service user-api {
|
||||
@doc (
|
||||
summary: "Get user infomaction by user id"
|
||||
)
|
||||
@handler userInfo
|
||||
post /user/info (UserInfoReq) returns (UserInfoResp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user