register&login

This commit is contained in:
zhong
2024-05-12 18:46:18 +08:00
parent 8537dc9b47
commit b6e4a813a5
8 changed files with 190 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
package proto
type (
LoginReq struct {
Username string `json:"username"`
Password string `json:"password"`
}
LoginResult struct {
Username string `json:"username"`
Role int `json:"role"`
Msg string `json:"msg"`
}
)

View File

@@ -0,0 +1,11 @@
package proto
type (
RegisterReq struct {
Username string `json:"username"`
Password string `json:"password"`
}
RegisterResult struct {
Msg string `json:"msg"`
}
)