This commit is contained in:
qaq
2025-07-02 23:11:07 +08:00
parent 94e01ae63b
commit f1cab0563a
16 changed files with 388 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package users
import (
"beego-backend/common"
)
func LoginByPassword(data LoginModel) common.ResponseResult {
return common.ResponseResult{
Code: 0,
Success: true,
Message: "success",
Data: nil,
}
}
+14
View File
@@ -0,0 +1,14 @@
package users
type UserModel struct {
ID int `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
IsActive bool `json:"is_active"`
}
type LoginModel struct {
Username string `json:"username"`
Password string `json:"password"`
}