changed arhitecture
This commit is contained in:
1 parent
7e3a5cebcc
commit
585ba63bc2
95 files changed
+4985
-1360
No files matched your search
@@ -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"`
|
||||
}
|
||||
Reference in new issue
Block a user