Browse Source

v0.0.1开发:transfer服务开发

#Suyghur 2 năm trước cách đây
mục cha
commit
36ecf22903

+ 17 - 16
bff/authbff/api/desc/authbff.api

@@ -1,34 +1,35 @@
 syntax = "v1"
 
 info(
-    title: "api前端服务"
-    desc: "api前端服务 "
-    author: "#Suyghur"
-    version: "v1"
+	title: "api前端服务"
+	desc: "api前端服务 "
+	author: "#Suyghur"
+	version: "v1"
 )
 
 type PlayerAuthReq {
-    PlayerId string `json:"player_id"`
-    GameId string `json:"game_id"`
+	GameId   string `json:"game_id"`
+	PlayerId string `json:"player_id"`
+	Type     int32  `json:"type"`
 }
 
 type CsAuthReq {
-    CsId string `json:"cs_id"`
+	CsId string `json:"cs_id"`
 }
 
 type AuthResp {
-    AccessToken string `json:"access_token"`
+	AccessToken string `json:"access_token"`
 }
 
 @server(
-    prefix: api/v1/auth
+	prefix: api/v1/auth
 )
 service authbff {
-    @doc "玩家登录"
-    @handler playerLogin
-    post /player-login (PlayerAuthReq) returns (AuthResp)
-
-    @doc "客服登录"
-    @handler csLogin
-    post /cs-login (CsAuthReq) returns (AuthResp)
+	@doc "玩家登录"
+	@handler playerLogin
+	post /player-login (PlayerAuthReq) returns (AuthResp)<