From 15eb99d9750cb9efe0d40a7ac0d1f2efb5ab3ee3 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Sun, 25 Jun 2023 17:51:37 +0800 Subject: [PATCH] fix --- server/home-user-auth/internal/types/types.go | 14 +++----------- server_api/home-user-auth.api | 7 +------ 2 files changed, 4 insertions(+), 17 deletions(-) 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); }