settings section
This commit is contained in:
52
internal/admin/loansdocument/dto.go
Normal file
52
internal/admin/loansdocument/dto.go
Normal file
@@ -0,0 +1,52 @@
|
||||
package loansdocument
|
||||
|
||||
import "time"
|
||||
|
||||
type LocalizedTitle struct {
|
||||
En string `json:"en"`
|
||||
Ru string `json:"ru"`
|
||||
Tm string `json:"tm"`
|
||||
}
|
||||
|
||||
type LoanDocumentDTO struct {
|
||||
Id int64 `json:"id"`
|
||||
Title LocalizedTitle `json:"title"`
|
||||
ContentEn string `json:"contentEn"`
|
||||
ContentRu string `json:"contentRu"`
|
||||
ContentTm string `json:"contentTm"`
|
||||
Status bool `json:"status"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type CreateLoanDocumentDTO struct {
|
||||
Title LocalizedTitle `json:"title" binding:"required"`
|
||||
ContentEn string `json:"contentEn" binding:"required"`
|
||||
ContentRu string `json:"contentRu" binding:"required"`
|
||||
ContentTm string `json:"contentTm" binding:"required"`
|
||||
Status *bool `json:"status"`
|
||||
}
|
||||
|
||||
type UpdateLoanDocumentDTO struct {
|
||||
Title LocalizedTitle `json:"title" binding:"required"`
|
||||
ContentEn string `json:"contentEn" binding:"required"`
|
||||
ContentRu string `json:"contentRu" binding:"required"`
|
||||
ContentTm string `json:"contentTm" binding:"required"`
|
||||
Status bool `json:"status"`
|
||||
}
|
||||
|
||||
type UpdateLoanDocumentStatusDTO struct {
|
||||
Status bool `json:"status"`
|
||||
}
|
||||
|
||||
type ListFilter struct {
|
||||
DocumentName string
|
||||
Status *bool
|
||||
Page int
|
||||
Limit int
|
||||
}
|
||||
|
||||
type ListLoanDocumentDTO struct {
|
||||
Count int64 `json:"count"`
|
||||
LoansDocuments []LoanDocumentDTO `json:"loansDocuments"`
|
||||
}
|
||||
Reference in New Issue
Block a user