initial commit

This commit is contained in:
2025-05-22 19:39:08 +08:00
commit 531bb42d01
103 changed files with 10291 additions and 0 deletions

View File

@ -0,0 +1,44 @@
// Code generated by goctl. DO NOT EDIT.
// goctl 1.8.3
package types
type GetUserInfoReq struct {
UserId string `path:"user_id"`
}
type GetUserInfoResp struct {
UserId string `json:"user_id"`
Username string `json:"username"`
Email string `json:"email"`
CreatedAt int64 `json:"created_at"`
Roles []string `json:"roles"`
}
type LoginReq struct {
Username string `json:"username"`
Password string `json:"password"`
}
type LoginResp struct {
Token string `json:"token"`
ExpiresAt int64 `json:"expires_at"`
}
type LogoutReq struct {
Token string `json:"token"`
}
type LogoutResp struct {
Success bool `json:"success"`
}
type RegisterReq struct {
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
}
type RegisterResp struct {
UserId string `json:"user_id"`
}