- Config
- Auth
- Users
- Mail
- Cashflow
- WebSocket
- Datasrc
- Report
- Home
检索字段枚举值
GET
/api/cashflow/enum
Cashflow
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
username
string
用户名
示例值:
047f9a52-68e4-4300-8748-70f71267413e
key
string
字段名
示例值:
category
value
string
字段名
示例值:
退款
size
number
返回数量
示例值:
10
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://s.hancel.org/api/cashflow/enum?username=047f9a52-68e4-4300-8748-70f71267413e&key=category&value=退款&size=10'
返回响应
🟢200成功
application/json
Body
data
array[object (EnumFieldRsp) {2}]
必需
value
string
必需
total
integer
必需
code
integer
必需
message
string
必需
示例
{
"data": [
{
"value": "招商银行(8413)",
"total": 9
},
{
"value": "4.",
"total": 2
},
{
"value": "tb**4",
"total": 2
},
{
"value": "绿茶(1234space店)",
"total": 1
},
{
"value": "18软件3-4林耿杰",
"total": 1
},
{
"value": "萨莉亚意式餐厅(GZ014东门文化娱乐中心店)",
"total": 1
},
{
"value": "tb2184447_2012",
"total": 1
},
{
"value": "Shupei1024",
"total": 1
}
],
"code": 0,
"message": "ok"
}
修改于 2024-08-02 15:09:42