settings section

This commit is contained in:
2026-07-04 18:34:30 +05:00
parent bbe5d219ad
commit 0c717101da
2867 changed files with 1118596 additions and 1 deletions

25
internal/admin/auth/dto.go Executable file
View File

@@ -0,0 +1,25 @@
package auth
import "time"
type LoginDTO struct {
Login string `json:"login" binding:"required"`
Password string `json:"password" binding:"required"`
}
type ResLoginDTO struct {
Id int `json:"id"`
Password string `json:"-"`
}
type TokenReqBody struct {
RefreshToken string `json:"refreshToken" binding:"required"`
}
type ResUserDTO struct {
Id int `json:"id"`
FullName string `json:"fullName"`
PhoneNumber string `json:"phoneNumber"`
Avatar string `json:"avatar"`
CreatedAt time.Time `json:"createdAt"`
}