MSP-1070 rename auth struct to login struct
This commit is contained in:
1 parent
bb4c8cd8ad
commit
ece61a0e87
4 files changed
+28
-28
No files matched your search
@@ -2,17 +2,17 @@ package domain
|
||||
|
||||
const AdminAuthHeaderName = "x-auth-admin"
|
||||
|
||||
type Auth struct {
|
||||
Token string
|
||||
Expired string `json:",omitempty"`
|
||||
HeaderName string
|
||||
}
|
||||
|
||||
type AuthRequest struct {
|
||||
type LoginRequest struct {
|
||||
Email string `valid:"required"`
|
||||
Password string ` valid:"required"`
|
||||
}
|
||||
|
||||
type SudirAuthRequest struct {
|
||||
type LoginSudirRequest struct {
|
||||
AuthCode string `valid:"required"`
|
||||
}
|
||||
|
||||
type LoginResponse struct {
|
||||
Token string
|
||||
Expired string `json:",omitempty"`
|
||||
HeaderName string
|
||||
}
|
||||
Reference in new issue
Block a user