站点设置
对部署的系统的基本信息修改展示,站点名称,图标,ico,备案信息,logo等
GET 查询站点信息
GET /admin/tenant/info/
路径参数1定死
请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| tenantId | path | string | 是 | 固定值1 |
| Authorization | header | string | 是 | none |
返回示例
json
{
"code": 0,
"msg": null,
"data": {
"id": "1",
"name": "数据中心",
"code": "1",
"tenantDomain": "",
"websiteName": "图新",
"logo": "/admin/sys-file/oss/file?fileName=346b0a89f7094b20965c677a3ca3ac3a.png",
"footer": "345345345",
"miniQr": null,
"background": null,
"startTime": "2019-05-15 00:00:00",
"endTime": "2029-05-15 00:00:00",
"status": "0",
"menuId": "1642752536722997250",
"createBy": "",
"updateBy": "admin",
"delFlag": "0",
"createTime": "2019-05-15 15:44:57",
"updateTime": "2025-01-10 10:40:21",
"fullName": "图新地球·网页端",
"simpleName": "图新地球·网页端",
"subtitle": "图新地球·网页端",
"faviconPath": "/1.png",
"icp": "苏备20150109号-1",
"organizer": "中科图新"
},
"ok": true
}返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | null | true | none | none | |
| » data | object | true | none | none | |
| »» id | string | true | none | 记录ID | |
| »» name | string | true | none | 站点名称 | |
| »» code | string | true | none | none | |
| »» tenantDomain | string | true | none | none | |
| »» websiteName | string | true | none | none | |
| »» logo | string | true | none | none | |
| »» footer | string | true | none | none | |
| »» miniQr | null | true | none | none | |
| »» background | null | true | none | none | |
| »» startTime | string | true | none | none | |
| »» endTime | string | true | none | none | |
| »» status | string | true | none | none | |
| »» menuId | string | true | none | none | |
| »» createBy | string | true | none | none | |
| »» updateBy | string | true | none | none | |
| »» delFlag | string | true | none | none | |
| »» createTime | string | true | none | none | |
| »» updateTime | string | true | none | none | |
| »» fullName | string | true | none | none | |
| »» simpleName | string | true | none | none | |
| »» subtitle | string | true | none | 标题 | |
| »» faviconPath | string | true | none | ico | |
| »» icp | string | true | none | icp备案号 | |
| »» organizer | string | true | none | 机构 | |
| » ok | boolean | true | none | none |
POST 上传文件
POST /admin/sys-file/upload
主要上传logo,浏览器图标,获取临时文件信息
Body 请求参数
yaml
file: file://E:\图片素材\1 (17).png请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| Authorization | header | string | 是 | none |
| Content-Type | header | string | 是 | none |
| body | body | object | 否 | none |
| » file | body | string(binary) | 是 | 上传文件 |
返回示例
json
{
"code": 0,
"msg": null,
"data": {
"bucketName": "local",
"fileName": "9d65216519c0494fb379511d321a0447.png",
"url": "/admin/sys-file/oss/file?fileName=9d65216519c0494fb379511d321a0447.png"
},
"ok": true
}返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | null | true | none | none | |
| » data | object | true | none | none | |
| »» bucketName | string | true | none | none | |
| »» fileName | string | true | none | 文件存储名称 | |
| »» url | string | true | none | 文件地址 | |
| » ok | boolean | true | none | none |
PUT 修改站点信息
PUT /admin/tenant
id 租户ID full_name 全称 simple_name 简称 subtitle 副标题 favicon_path 浏览器图标 icp icp备案号 organizer 主办单位
Body 请求参数
json
{
"id": 1,
"fullName": "asd",
"simpleName": "a1sd",
"subtitle": "sdf",
"faviconPath": "fdsd",
"icp": "fsdf",
"organizer": "aaaa"
}请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| Authorization | header | string | 是 | none |
| body | body | object | 否 | none |
| » id | body | integer | 是 | none |
| » fullName | body | string | 是 | none |
| » simpleName | body | string | 是 | none |
| » subtitle | body | string | 是 | none |
| » faviconPath | body | string | 是 | none |
| » icp | body | string | 是 | none |
| » organizer | body | string | 是 | none |
返回示例
json
{
"code": 0,
"msg": null,
"data": true,
"ok": true
}返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | null | true | none | none | |
| » data | boolean | true | none | none | |
| » ok | boolean | true | none | none |