Handlers, DB, Cache

This commit is contained in:
2026-03-10 19:17:43 +03:00
parent e56b1f1305
commit 968c030939
23 changed files with 566 additions and 34 deletions

20
internal/models/user.go Normal file
View File

@@ -0,0 +1,20 @@
package models
type UserRegister struct {
TIN string `json:"tin"`
Phone string `json:"phone"`
Passwd string `json:"password,omitempty"`
PasswdCfm string `json:"password_cfm,omitempty"`
PasswdHash string `json:"-"`
}
type UserLoginReq struct {
Phone string `json:"phone"`
Passwd string `json:"password"`
PasswdHash string `json:"-"`
}
type UserLoginResp struct {
Token string `json:"token"`
TokenTtl int64 `json:"token_ttl"`
}