39 lines
1.1 KiB
Go
39 lines
1.1 KiB
Go
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"`
|
|
}
|