Add GET /loan-orders/mobile to list loan orders created from the mobile app.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-22 18:37:31 +05:00
parent 8795ae2195
commit 427d5b4e07
6 changed files with 240 additions and 0 deletions

View File

@@ -2678,6 +2678,56 @@ paths:
summary: Update loan order
tags:
- loan-orders
/loan-orders/mobile:
get:
description: Returns paginated loan orders created from the mobile app
parameters:
- description: Filter by status
in: query
name: status
type: string
- description: Filter by branch ID
in: query
name: branch_id
type: integer
- description: Filter by user ID
in: query
name: user_id
type: integer
- description: Filter by region
in: query
name: region
type: string
- default: 1
description: Page number
in: query
name: page
type: integer
- default: 10
description: Items per page
in: query
name: limit
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/appresult.AppSuccess'
"400":
description: Bad Request
schema:
$ref: '#/definitions/appresult.AppError'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/appresult.AppError'
security:
- BearerAuth: []
summary: List mobile loan orders
tags:
- loan-orders
/loan-paid-off-letters:
get:
description: Returns paginated loan paid off letters with optional filters