changed arhitecture

This commit is contained in:
guwandyk committed 2026-07-15 18:08:19 +05:00
1 parent 7e3a5cebcc
commit 585ba63bc2
95 files changed
+4985 -1360

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
package loansrepayment
import "time"
type LoanRepaymentDTO struct {
Id int64 `json:"id"`
UserId int64 `json:"userId"`
PassportSerie string `json:"passportSerie"`
PassportId string `json:"passportId"`
AccountNumber string `json:"accountNumber"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type CreateLoanRepaymentDTO struct {
UserId int64 `json:"userId" binding:"required"`
PassportSerie string `json:"passportSerie" binding:"required"`
PassportId string `json:"passportId" binding:"required"`
AccountNumber string `json:"accountNumber" binding:"required"`
}
type UpdateLoanRepaymentDTO struct {
UserId int64 `json:"userId" binding:"required"`
PassportSerie string `json:"passportSerie" binding:"required"`
PassportId string `json:"passportId" binding:"required"`
AccountNumber string `json:"accountNumber" binding:"required"`
}
type ListFilter struct {
PassportId string
Page int
Limit int
}
type ListLoanRepaymentDTO struct {
Count int64 `json:"count"`
Loans []LoanRepaymentDTO `json:"loans"`
}