generate jwt
This commit is contained in:
10
modules/auth/dto/user.go
Normal file
10
modules/auth/dto/user.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package dto
|
||||
|
||||
type LoginRequestForm struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
}
|
||||
|
||||
type LoginResponse struct {
|
||||
Token string `json:"token,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user