generate jwt

This commit is contained in:
yanghao05
2023-02-06 09:12:32 +08:00
parent afeffe2ed6
commit 0ddbeb3f7a
5 changed files with 89 additions and 16 deletions

10
modules/auth/dto/user.go Normal file
View 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"`
}