feat: 管理员 配置信息类型新增file,file_list,string_list类型
This commit is contained in:
@@ -3,13 +3,61 @@
|
||||
|
||||
自行访问下面的接口地址内容
|
||||
|
||||
1.添加了参数show_home 用于控制商品套餐是否在首页显示,http://localhost:5174/product/list在该页面的编辑弹窗和新增弹窗添加show_home参数,是否展示按钮,这是个boolean值,true为展示,false为不展示 ✅已完成
|
||||
创建商品套餐
|
||||
POST /api/v1/admin/good/plan/create
|
||||
接口ID:412068533
|
||||
接口地址:https://app.apifox.com/link/project/5145887/apis/api-412068533
|
||||
1.- 管理员 配置信息类型 type参数新增 file 类型,先点击上传图片的位置上传文件请求文件上传接口后将获取的响应数据中的id赋值到value,用户端返回信息会返回url ✅已完成
|
||||
|
||||
- 管理员 配置信息类型
|
||||
- 新增 file 类型,上传文件后,设置value为id
|
||||
- 新增 file_list 类型,允许上传多个文件,value 为文件列表id,使用 , 分割
|
||||
- 新增 string_list 类型,value 为字符串列表,使用 , 分割
|
||||
创建配置
|
||||
POST /api/v1/admin/server/setting/create
|
||||
接口ID:361964543
|
||||
接口地址:https://app.apifox.com/link/project/5145887/apis/api-361964543
|
||||
以下为响应数据格式:
|
||||
{
|
||||
"code": 200,
|
||||
"message": "Success",
|
||||
"data": {
|
||||
"id": 5,
|
||||
"name": "测试111",
|
||||
"value": "1459",
|
||||
"note": "测试",
|
||||
"type": "file",
|
||||
"settingGroup": null,
|
||||
"settingGroupID": 4,
|
||||
"open": true,
|
||||
"CreatedAt": "2026-03-10T11:06:05.531505043+08:00",
|
||||
"UpdatedAt": "2026-03-10T11:06:05.531505043+08:00",
|
||||
"omitempty": null
|
||||
}
|
||||
}
|
||||
|
||||
文件上传
|
||||
POST /api/v1/tools/file/upload
|
||||
接口ID:223275082
|
||||
接口地址:https://app.apifox.com/link/project/5145887/apis/api-223275082
|
||||
|
||||
以下是响应数据格式:
|
||||
{
|
||||
"code": 200,
|
||||
"message": "Success",
|
||||
"data": [
|
||||
{
|
||||
"id": 1459,
|
||||
"realName": "312",
|
||||
"saveName": "17731118324",
|
||||
"savePath": "static/files/2026-03-10/17731118324",
|
||||
"size": 323351,
|
||||
"type": "work_order",
|
||||
"content": "",
|
||||
"userId": 4,
|
||||
"openDow": true,
|
||||
"CreatedAt": "2026-03-10T11:03:52.910463212+08:00",
|
||||
"UpdatedAt": "2026-03-10T11:03:52.910463212+08:00",
|
||||
"omitempty": null
|
||||
}
|
||||
]
|
||||
}
|
||||
-----------------------------------------------------------------------------------------------需要解决
|
||||
|
||||
规则限制:
|
||||
|
||||
Reference in New Issue
Block a user