Feat: 登录接口实现
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-04-09 11:48:44 +08:00
parent 0df2aaa82f
commit 35801f5ee9
13 changed files with 160 additions and 39 deletions

6
pkg/serializer/login.go Normal file
View File

@@ -0,0 +1,6 @@
package serializer
type LoginResponse struct {
Token string `json:"token"`
RefreshToken string `json:"refresh_token"`
}

View File

@@ -12,5 +12,6 @@ type ResponseSerial struct {
50000 服务器操作
*/
const (
ErrNoUser = 40001
ErrNoUser = 40001
ErrBadLogin = 40002
)