diff --git a/server/home-user-auth/internal/types/types.go b/server/home-user-auth/internal/types/types.go index b5e34494..903b376d 100644 --- a/server/home-user-auth/internal/types/types.go +++ b/server/home-user-auth/internal/types/types.go @@ -5,9 +5,6 @@ import ( "fusenapi/utils/basic" ) -type Request struct { -} - type RequestBasicInfoForm struct { FirstName string `json:"first_name"` // FirstName LastName string `json:"last_name"` // LastName @@ -111,20 +108,15 @@ type DataAddressList struct { IsDefault int64 `json:"is_default"` // 1默认地址,0非默认地址 } +type Request struct { +} + type Response struct { Code int `json:"code"` Message string `json:"msg"` Data interface{} `json:"data"` } -type ResponseJwt struct { - Code int `json:"code"` - Message string `json:"msg"` - Data interface{} `json:"data"` - AccessSecret string `json:"accessSecret"` - AccessExpire int64 `json:"accessExpire"` -} - type Auth struct { AccessSecret string `json:"accessSecret"` AccessExpire int64 `json:"accessExpire"` diff --git a/server_api/home-user-auth.api b/server_api/home-user-auth.api index 8dfd9d96..c8820ad6 100644 --- a/server_api/home-user-auth.api +++ b/server_api/home-user-auth.api @@ -9,11 +9,6 @@ info ( import "basic.api" -type request { - // TODO: add members here and delete this comment - // Name string `form:"name"` // parameters are auto validated -} - service home-user-auth { @handler UserLoginHandler post /user/login(RequestUserLogin) returns (response); @@ -44,7 +39,7 @@ service home-user-auth { // @handler UserOderListHandler // get /user/order-list(RequestOrderId) returns (response); - + @handler UserOderDeleteHandler post /user/order-delete(RequestOrderId) returns (response); }