xframe/_service_api/treasure_hunt.api

35 lines
646 B
Plaintext
Executable File

syntax = "v1"
//import "git.ixiaochuan.cn/zeus/xczero_util/common/xcproto"
//import "git.ixiaochuan.cn/pp_server/service_v2/mtypes"
info(
desc: "鲲、刮刮乐服务"
)
type (
GameEntrance {
Icon string `json:"icon"`
JumpUrl string `json:"jump_url"`
}
)
type (
GetEntranceParam {
Mid int64 `json:"mid"`
ReqType int `json:"req_type"`
}
GetEntranceResp {
Data map[string]int `json:"data"`
}
)
@server(
prefix: /treasure_hunt/httpapi
)
service account {
@handler GetEntranceHandler
post /v0.1/get_entrance (GetEntranceParam) returns (GetEntranceResp)
}