Files
online-backend/internal/lending/loansrepayment/dto.go
T
guwandykandCursor 1fd0abbcb2 Bind permissions to roles and scope operator access by branch.
Replace permission_user with permission_role, enforce RBAC on admin routes, and limit operators to their assigned branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 18:24:43 +05:00

41 lines
1.2 KiB
Go

package loansrepayment
import "time"
type LoanRepaymentDTO struct {
Id int64 `json:"id"`
UserId int64 `json:"userId"`
UserName string `json:"userName"`
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
BranchIds []int64
Page int
Limit int
}
type ListLoanRepaymentDTO struct {
Count int64 `json:"count"`
Loans []LoanRepaymentDTO `json:"loans"`
}