mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-04 09:06:38 +08:00
暂存
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user