2026-09-15 23:23:47 +03:30
|
|
|
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"`
|
|
|
|
|
}
|
2026-09-20 05:30:14 +03:30
|
|
|
|
|
|
|
|
// BlockUserRequest بلاک کردن یک کاربر توسط ادمین (دلیل الزامی است)
|
|
|
|
|
type BlockUserRequest struct {
|
|
|
|
|
Reason string `json:"reason" binding:"required,min=3,max=500"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ReportUserRequest ثبت یک یادداشت نظارتی روی یک کاربر (دلیل الزامی است)
|
|
|
|
|
type ReportUserRequest struct {
|
|
|
|
|
Reason string `json:"reason" binding:"required,min=3,max=500"`
|
|
|
|
|
}
|