Files
online-backend/internal/admin/province/dto.go
GuwandykA 82e1aad016 Align schema, API routes, and auth with updated admin domain model.
Rename users table fields and loan documents table, expand branch billing credentials, switch to /api/admin prefix, refactor auth endpoints, replace PATCH with PUT for status updates, remove file upload APIs, and regenerate Swagger with ordered tags.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 14:09:45 +05:00

24 lines
521 B
Go

package province
type LocalizedTitle struct {
En string `json:"en"`
Ru string `json:"ru"`
Tm string `json:"tm"`
}
type ProvinceDTO struct {
Id int64 `json:"id"`
Title LocalizedTitle `json:"title"`
Status bool `json:"status"`
}
type CreateProvinceDTO struct {
Title LocalizedTitle `json:"title" binding:"required"`
Status *bool `json:"status"`
}
type UpdateProvinceDTO struct {
Title LocalizedTitle `json:"title" binding:"required"`
Status bool `json:"status"`
}