| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504 |
- {
- "openapi": "3.0.3",
- "info": {
- "title": "ykCenter养康中心管理系统 - 收款管理API",
- "description": "收款管理模块API接口文档,包含增删改查等核心功能接口,支持长者收款记录的全面管理",
- "version": "1.0.0",
- "contact": {
- "name": "技术支持",
- "email": "support@example.com"
- }
- },
- "servers": [
- {
- "url": "http://localhost:8080",
- "description": "开发环境服务器"
- },
- {
- "url": "https://api.ykcenter.com",
- "description": "生产环境服务器"
- }
- ],
- "tags": [
- {
- "name": "proceeds",
- "description": "收款管理相关接口"
- }
- ],
- "paths": {
- "/ykCenter/proceeds/list": {
- "get": {
- "tags": ["proceeds"],
- "summary": "获取收款记录列表",
- "description": "分页获取收款记录列表,支持按长者姓名、日期范围等条件筛选",
- "operationId": "getProceedsList",
- "parameters": [
- {
- "name": "pageNo",
- "in": "query",
- "description": "页码",
- "required": false,
- "schema": {
- "type": "integer",
- "default": 1,
- "minimum": 1
- }
- },
- {
- "name": "pageSize",
- "in": "query",
- "description": "每页数量",
- "required": false,
- "schema": {
- "type": "integer",
- "default": 10,
- "minimum": 1,
- "maximum": 100
- }
- },
- {
- "name": "elderlyName",
- "in": "query",
- "description": "长者姓名",
- "required": false,
- "schema": {
- "type": "string",
- "maxLength": 50
- }
- },
- {
- "name": "dateRange",
- "in": "query",
- "description": "日期范围,格式:YYYY-MM-DD,YYYY-MM-DD",
- "required": false,
- "schema": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "date"
- },
- "maxItems": 2,
- "minItems": 2
- }
- }
- ],
- "responses": {
- "200": {
- "description": "获取成功",
- "content": {
- "application/json": {
- "schema": {
- "allOf": [
- {
- "$ref": "#/components/schemas/ApiResponse"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "$ref": "#/components/schemas/ProceedsListResponse"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- },
- "/ykCenter/proceeds/add": {
- "post": {
- "tags": ["proceeds"],
- "summary": "新增收款记录",
- "description": "新增长者收款记录信息",
- "operationId": "addProceeds",
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AddProceedsRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "新增成功",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiResponse"
- }
- }
- }
- }
- }
- }
- },
- "/ykCenter/proceeds/update": {
- "put": {
- "tags": ["proceeds"],
- "summary": "编辑收款记录",
- "description": "更新收款记录信息",
- "operationId": "updateProceeds",
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UpdateProceedsRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "更新成功",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiResponse"
- }
- }
- }
- }
- }
- }
- },
- "/ykCenter/proceeds/delete": {
- "delete": {
- "tags": ["proceeds"],
- "summary": "删除收款记录",
- "description": "根据ID删除收款记录信息",
- "operationId": "deleteProceeds",
- "parameters": [
- {
- "name": "id",
- "in": "query",
- "description": "收款记录ID",
- "required": true,
- "schema": {
- "type": "integer",
- "minimum": 1
- }
- }
- ],
- "responses": {
- "200": {
- "description": "删除成功",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiResponse"
- }
- }
- }
- }
- }
- }
- },
- "/ykCenter/proceeds/upload": {
- "post": {
- "tags": ["proceeds"],
- "summary": "上传收款记录",
- "description": "上传收款记录信息,支持文件和表单数据,包含所有字段和图片上传",
- "operationId": "uploadProceeds",
- "requestBody": {
- "required": true,
- "content": {
- "multipart/form-data": {
- "schema": {
- "$ref": "#/components/schemas/UploadProceedsRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "上传成功",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiResponse"
- }
- }
- }
- }
- }
- }
- },
- "/ykCenter/proceeds/image/{id}": {
- "get": {
- "tags": ["proceeds"],
- "summary": "获取收款凭证图片",
- "description": "根据收款记录ID获取收款凭证图片URL",
- "operationId": "getProceedsImage",
- "parameters": [
- {
- "name": "id",
- "in": "path",
- "description": "收款记录ID",
- "required": true,
- "schema": {
- "type": "integer",
- "minimum": 1
- }
- }
- ],
- "responses": {
- "200": {
- "description": "获取成功",
- "content": {
- "application/json": {
- "schema": {
- "allOf": [
- {
- "$ref": "#/components/schemas/ApiResponse"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "type": "object",
- "properties": {
- "imageUrl": {
- "type": "string",
- "description": "收款凭证图片URL"
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "components": {
- "schemas": {
- "ApiResponse": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "description": "响应码",
- "example": 200
- },
- "message": {
- "type": "string",
- "description": "响应消息",
- "example": "操作成功"
- },
- "data": {
- "type": "object",
- "description": "响应数据"
- }
- },
- "required": ["code", "message"]
- },
- "Proceeds": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "收款记录ID",
- "example": 1,
- "minimum": 1
- },
- "elderlyName": {
- "type": "string",
- "description": "长者姓名",
- "example": "李老太太",
- "maxLength": 50
- },
- "amount": {
- "type": "string",
- "description": "收款金额",
- "example": "300.00",
- "pattern": "^\\d+(\\.\\d{1,2})?$"
- },
- "paymentType": {
- "type": "string",
- "description": "收款类型",
- "example": "微信",
- "enum": ["微信", "现金", "银行卡"]
- },
- "paymentDateTime": {
- "type": "string",
- "description": "收款日期时间",
- "example": "2023-06-15 10:15:00",
- "format": "date-time"
- },
- "operator": {
- "type": "string",
- "description": "操作员",
- "example": "王管理员",
- "maxLength": 50
- },
- "remark": {
- "type": "string",
- "description": "备注",
- "example": "充值餐费",
- "maxLength": 500
- },
- "receiptImage": {
- "type": "string",
- "description": "收款凭证图片URL",
- "example": "https://picsum.photos/seed/payment2/800/600.jpg"
- }
- },
- "required": ["elderlyName", "amount", "paymentType", "paymentDateTime", "operator"]
- },
- "ProceedsListResponse": {
- "type": "object",
- "properties": {
- "list": {
- "type": "array",
- "description": "收款记录列表",
- "items": {
- "$ref": "#/components/schemas/Proceeds"
- }
- },
- "total": {
- "type": "integer",
- "description": "总记录数",
- "example": 100,
- "minimum": 0
- }
- },
- "required": ["list", "total"]
- },
- "AddProceedsRequest": {
- "type": "object",
- "properties": {
- "elderlyName": {
- "type": "string",
- "description": "长者姓名",
- "example": "李老太太",
- "maxLength": 50
- },
- "amount": {
- "type": "string",
- "description": "收款金额",
- "example": "300.00",
- "pattern": "^\\d+(\\.\\d{1,2})?$"
- },
- "paymentType": {
- "type": "string",
- "description": "收款类型",
- "example": "微信",
- "enum": ["微信", "现金", "银行卡"]
- },
- "paymentDateTime": {
- "type": "string",
- "description": "收款日期时间",
- "example": "2023-06-15 10:15:00",
- "format": "date-time"
- },
- "operator": {
- "type": "string",
- "description": "操作员",
- "example": "王管理员",
- "maxLength": 50
- },
- "remark": {
- "type": "string",
- "description": "备注",
- "example": "充值餐费",
- "maxLength": 500
- },
- "receiptImage": {
- "type": "string",
- "description": "收款凭证图片URL",
- "example": "https://picsum.photos/seed/payment2/800/600.jpg"
- }
- },
- "required": ["elderlyName", "amount", "paymentType", "paymentDateTime", "operator"]
- },
- "UpdateProceedsRequest": {
- "allOf": [
- {
- "$ref": "#/components/schemas/AddProceedsRequest"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "收款记录ID",
- "example": 1,
- "minimum": 1
- }
- },
- "required": ["id"]
- }
- ]
- },
- "UploadProceedsRequest": {
- "type": "object",
- "properties": {
- "elderlyName": {
- "type": "string",
- "description": "长者姓名",
- "example": "李老太太",
- "maxLength": 50
- },
- "amount": {
- "type": "string",
- "description": "收款金额",
- "example": "300.00",
- "pattern": "^\\d+(\\.\\d{1,2})?$"
- },
- "paymentType": {
- "type": "string",
- "description": "收款类型",
- "example": "微信",
- "enum": ["微信", "现金", "银行卡"]
- },
- "paymentDateTime": {
- "type": "string",
- "description": "收款日期时间",
- "example": "2023-06-15 10:15:00",
- "format": "date-time"
- },
- "operator": {
- "type": "string",
- "description": "操作员",
- "example": "王管理员",
- "maxLength": 50
- },
- "remark": {
- "type": "string",
- "description": "备注",
- "example": "充值餐费",
- "maxLength": 500
- },
- "receiptImage": {
- "type": "string",
- "description": "收款凭证图片URL",
- "example": "https://picsum.photos/seed/payment2/800/600.jpg"
- },
- "imageFile": {
- "type": "string",
- "format": "binary",
- "description": "收款凭证图片文件",
- "example": "receipt.jpg"
- }
- },
- "required": ["elderlyName", "amount", "paymentType", "paymentDateTime", "operator"]
- }
- }
- },
- "security": [
- {
- "bearerAuth": []
- }
- ]
- }
|