Return role IDs on users and related names on loan APIs.
Loan orders, paid-off letters, and repayments now include user, branch, type, and document names alongside foreign-key IDs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2853bed2ec
commit
d7cdd53597
10 files changed
+659
-268
No files matched your search
@@ -24,6 +24,7 @@ type UserDTO struct {
|
||||
Phone string `json:"phone"`
|
||||
Avatar string `json:"avatar"`
|
||||
Role string `json:"role"`
|
||||
RoleId *int64 `json:"roleId,omitempty"`
|
||||
Active bool `json:"active"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
|
||||
Reference in new issue
Block a user