Documentation ¶
Index ¶
- Variables
- func SuccessResponseWithPagination(ctx echo.Context, data any, pagination *Pagination) error
- func TranslateError(err error) map[string]string
- type Attachment
- type AttachmentView
- type Bride
- type BrideView
- type Confirmation
- type Groom
- type GroomView
- type IdModel
- type Invitation
- type InvitationDate
- type InvitationView
- type Pagination
- type QueryParams
- type RefreshTokenView
- type RoleReference
- type Speech
- type Token
- type User
- type UserLoginAttempt
- type UserLoginView
- type UserRole
- type UserView
Constants ¶
This section is empty.
Variables ¶
View Source
var AllModels = []interface{}{ User{}, UserRole{}, Invitation{}, Bride{}, Groom{}, Attachment{}, }
Functions ¶
func SuccessResponseWithPagination ¶
func SuccessResponseWithPagination(ctx echo.Context, data any, pagination *Pagination) error
func TranslateError ¶
Types ¶
type Attachment ¶
type Attachment struct { ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primaryKey"` TableName string `json:"table_name"` TableID string `json:"table_id"` FileName string `json:"file_name"` FileSize int `json:"file_size"` FileType string `json:"file_type"` FileURL string `json:"file_url"` IsActive bool `json:"is_active"` CreatedAt time.Time }
type AttachmentView ¶
type Bride ¶
type Bride struct { ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primaryKey"` UserID uuid.UUID `json:"user_id"` User User Name string `json:"name"` InstaID string `json:"insta_id"` Address string `json:"address"` FatherName string `json:"father_name"` MotherName string `json:"mother_name"` ChildTo string `json:"child_to"` AdditionalInfo string `json:"additional_info"` }
type Confirmation ¶
type Groom ¶
type Groom struct { ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primaryKey"` UserID uuid.UUID `json:"user_id"` User User Name string `json:"name"` InstaID string `json:"insta_id"` Address string `json:"address"` FatherName string `json:"father_name"` MotherName string `json:"mother_name"` ChildTo string `json:"child_to"` AdditionalInfo string `json:"additional_info"` }
type Invitation ¶
type InvitationDate ¶
type InvitationView ¶
type Pagination ¶
type QueryParams ¶
type RefreshTokenView ¶
type RefreshTokenView struct {
RefreshToken string `json:"refresh_token" validate:"required"`
}
type RoleReference ¶
type User ¶
type User struct { UserLoginAttempt ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primaryKey"` Phone string `json:"phone"` Email string `json:"email"` Password string `json:"password"` IsActive bool `json:"is_active"` TokenLastRevokedAt time.Time `json:"-"` CreatedAt time.Time `json:"created_at"` }
type UserLoginAttempt ¶
type UserLoginView ¶
Click to show internal directories.
Click to hide internal directories.