2823fb45f5
Phone+OTP auth, staged onboarding, admin approval workflow, and a full discovery/swipe/match/chat system with photo upload and approximate distance (haversine) based on user location. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
40 lines
1.4 KiB
Go
40 lines
1.4 KiB
Go
package dto
|
|
|
|
// CreateOptionRequest ساخت یک گزینهی جدید در یک دسته
|
|
type CreateOptionRequest struct {
|
|
Title string `json:"title" binding:"required,min=1,max=150"`
|
|
SortOrder int `json:"sort_order"`
|
|
}
|
|
|
|
// UpdateOptionRequest ویرایش یک گزینه
|
|
type UpdateOptionRequest struct {
|
|
Title *string `json:"title"`
|
|
SortOrder *int `json:"sort_order"`
|
|
IsActive *bool `json:"is_active"`
|
|
}
|
|
|
|
// UpdateCategoryRequest ویرایش تنظیمات یک دسته (مثلاً تغییر حداقل/حداکثر انتخاب)
|
|
type UpdateCategoryRequest struct {
|
|
Title *string `json:"title"`
|
|
MinSelect *int `json:"min_select"`
|
|
MaxSelect *int `json:"max_select"`
|
|
}
|
|
|
|
// CreateProfileQuestionRequest ساخت سوال جدید پروفایل
|
|
type CreateProfileQuestionRequest struct {
|
|
Text string `json:"text" binding:"required,min=3,max=255"`
|
|
SortOrder int `json:"sort_order"`
|
|
}
|
|
|
|
// UpdateProfileQuestionRequest ویرایش سوال پروفایل
|
|
type UpdateProfileQuestionRequest struct {
|
|
Text *string `json:"text"`
|
|
SortOrder *int `json:"sort_order"`
|
|
IsActive *bool `json:"is_active"`
|
|
}
|
|
|
|
// RejectUserRequest رد کردن درخواست عضویت یک کاربر توسط ادمین (دلیل الزامی است)
|
|
type RejectUserRequest struct {
|
|
Reason string `json:"reason" binding:"required,min=3,max=500"`
|
|
}
|