Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
42c1de5f
Commit
42c1de5f
authored
Apr 04, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加样表皮肤管理
parent
fc93bc63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
174 additions
and
0 deletions
+174
-0
doc/api.md
doc/api.md
+174
-0
No files found.
doc/api.md
View file @
42c1de5f
...
...
@@ -2805,3 +2805,177 @@ msg|String|消息|-
}
```
## 皮肤
### 查询皮肤列表
**请求URL:**
skin/list
**请求方式:**
POST
**内容类型:**
application/json;charset=utf-8
**简要描述:**
查询皮肤
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录
**请求样例:**
```
{
"page":1,
"size":10
}
```
**响应参数:**
参数名称|参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
 
per_page|Integer|每页条数
 
total|Integer|总条数
 
last_page|Integer|总页数
 
current_page|Integer|当前页
 
data|array|结果集列表|数组
  
id|Long|序号,主键,自增长
  
categoryId|Long|所属种类,来源种类
  
productId|Long|产品id
  
productName|String|产品名称
  
cssFilePath|String|css模板合成后文件地址
  
name|String|产品皮肤名称,唯一且不为空
  
imageResolution|String|分辨率 (1.1920
*1080,2.1080*
1920,3.1280
*
1280)
  
previewImagePath|String|预览图片
  
sortNum|Integer|排序编号
  
used|Integer|是否使用
  
createTime|Date|创建时间
  
createUserId|Long|创建用户
  
updateTime|Date|修改时间
dict|object|字典对象
 
imageResolution|object|字典属性对象,详见附录
**响应消息样例:**
```
{
"code":1,
"data":{
}
}
```
### 查看皮肤
**请求URL:**
skin/info
**请求方式:**
GET
**内容类型:**
application/json;charset=utf-8
**简要描述:**
查看皮肤,返回实例详细信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|Long|是|ID
**请求样例:**
```
http://localhost/skin/info?id=549
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:-------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
 
id|Long|序号,主键,自增长
 
categoryId|Long|所属种类,来源种类
 
productId|Long|产品id
 
productName|String|产品名称
 
cssFilePath|String|css模板合成后文件地址
 
name|String|产品皮肤名称,唯一且不为空
 
imageResolution|String|分辨率 (1.1920
*1080,2.1080*
1920,3.1280
*
1280)
 
previewImagePath|String|预览图片
 
sortNum|Integer|排序编号
 
used|Integer|是否使用
 
createTime|Date|创建时间
 
createUserId|Long|创建用户
 
updateTime|Date|修改时间
dict|object|字典对象
 
imageResolution|object|字典属性对象,详见附录
**响应消息样例:**
```
{
"code": 1,
"data": {
"id":8838,
"categoryId":483,
"productId":3204,
"productName":"cknp6t",
"cssFilePath":"ajehtm",
"name":"z8305x",
"imageResolution":"ud4cyj",
"previewImagePath":"d9yes7",
"sortNum":2831,
"used":4791,
"createTime":"2023-04-03",
"createUserId":4247,
"updateTime":"2023-04-03"
}
}
```
### 使用皮肤
**请求URL:**
skin/save
**请求方式:**
POST
**内容类型:**
application/json;charset=utf-8
**简要描述:**
使用皮肤
**请求参数:**
参数名称|类型| 必填 |描述
:---|:---|:----|:-------
id|Long| 是 |皮肤id
siteId|Long| 是 |站点id
used|Integer| 是 |是否使用(0.否,1.是)
**请求样例:**
```
{
"id":1,
"siteId":1,
"used":1,
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
**响应消息样例:**
```
{
"msg":"模块成功",
"code":1,
"data":{}
}
}
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment