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>
24 lines
521 B
Go
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"`
|
|
}
|