46 lines
1.3 KiB
Go
46 lines
1.3 KiB
Go
package loansrepayment
|
|
|
|
import (
|
|
"time"
|
|
|
|
"online-back/internal/shared"
|
|
)
|
|
|
|
type LoanRepaymentDTO struct {
|
|
Id int64 `json:"id"`
|
|
UserId int64 `json:"-"`
|
|
User *shared.UserInfo `json:"user,omitempty"`
|
|
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
|
|
UserId *int64
|
|
BranchIds []int64
|
|
Page int
|
|
Limit int
|
|
}
|
|
|
|
type ListLoanRepaymentDTO struct {
|
|
Count int64 `json:"count"`
|
|
Loans []LoanRepaymentDTO `json:"loans"`
|
|
}
|