This commit is contained in:
laodaming 2023-06-25 17:51:37 +08:00
parent d876884397
commit 15eb99d975
2 changed files with 4 additions and 17 deletions

View File

@ -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"`

View File

@ -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);
}