增加额度
设计中
POST
/api/admin/quota
最后修改时间:2025-02-05 02:19:50
bcrypt
算法将密码哈希化以后传入,哈希方法如下:
请求参数
Cookie 参数
session
string
可选
Body 参数application/json
user
string
用户名
pass
string
密码
apikey
string
用户 API Key
product_type
integer
产品类型
>= 1<= 2
product_id
integer
产品ID
user_id
integer
用户ID
quota
integer
授权额度
change
integer
修改额度
time
integer
有效期
示例
{
"user": "string",
"pass": "string",
"apikey": "string",
"product_type": 1,
"product_id": 0,
"user_id": 0,
"quota": 0,
"change": 0,
"time": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:8080/api/admin/quota' \
--header 'Cookie: session=' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": "string",
"pass": "string",
"apikey": "string",
"product_type": 1,
"product_id": 0,
"user_id": 0,
"quota": 0,
"change": 0,
"time": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
data
object
数据
msg
string
消息
示例
{
"code": 200,
"data": {},
"msg": "添加成功"
}
修改于 2025-02-05 02:19:50