initial commit
This commit is contained in:
44
gateway/internal/types/types.go
Normal file
44
gateway/internal/types/types.go
Normal file
@ -0,0 +1,44 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.8.3
|
||||
|
||||
package types
|
||||
|
||||
type GetUserInfoReq struct {
|
||||
UserId string `path:"user_id"`
|
||||
}
|
||||
|
||||
type GetUserInfoResp struct {
|
||||
UserId string `json:"user_id"`
|
||||
Username string `json:"username"`
|
||||
Email string `json:"email"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
Roles []string `json:"roles"`
|
||||
}
|
||||
|
||||
type LoginReq struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type LoginResp struct {
|
||||
Token string `json:"token"`
|
||||
ExpiresAt int64 `json:"expires_at"`
|
||||
}
|
||||
|
||||
type LogoutReq struct {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type LogoutResp struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
type RegisterReq struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
type RegisterResp struct {
|
||||
UserId string `json:"user_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user