Initial commit: dating app backend (Go/Gin/GORM/Postgres)
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>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user