文档
测试

新增分享页面配置

POST
/admin/system/shareimages/api/insertitem

请求头

参数名
类型
描述
必填
Cookie
String
必填

请求参数

参数名
类型
描述
必填
imageid
string
图片ID
可选
imagename
string
示例:图片名称
必填
imagetype
string
类型:image图片,qrcode:专属。示例:qrcode
必填
content
string
文字信息。示例:文字内容
必填
enabled
int
启用状态。示例:0:未启用,1:启用
必填
imagepath
string
推广图片路径。示例:https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/notices/2021/07/23/notices_2021-07-23_12-47-48_23051.jpg
可选
file
string
无用字段吧
可选
qr_width
int
二维码宽度,默认0。示例:10
必填
qr_x
int
二维码X座标,默认0。示例:2
必填
qr_y
int
二维码Y座标,默认0。示例:5
必填
name_format
string
名称格式或前缀。示例:文字前缀
可选
name_size
int
名称字体大小。示例:4
必填
name_x
int
名称X座标。示例:3
必填
name_y
int
名称Y座标。示例:3
必填
name_color
string
名称文字颜色。示例:#a60f0f
必填

响应参数

参数名
类型
描述
必填
result
int
0--成功,其他--失败。示例:0
必填
data
Object
null
必填
msg
string
提示信息。示例:Success
必填

说明 / 示例

请求参数示例: ``` { "imageid": "", "imagename": "123", "imagetype": "qrcode", "content": "123", "enabled": 1, "file": "", "qr_width": 0, "qr_x": 0, "qr_y": 0, "name_format": "", "name_size": 0, "name_x": 0, "name_y": 0, "name_color": "" } ```