Skip to content

站点设置

对部署的系统的基本信息修改展示,站点名称,图标,ico,备案信息,logo等

GET 查询站点信息

GET /admin/tenant/info/

路径参数1定死

请求参数

名称位置类型必选说明
tenantIdpathstring固定值1
Authorizationheaderstringnone

返回示例

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
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» idstringtruenone记录ID
»» namestringtruenone站点名称
»» codestringtruenonenone
»» tenantDomainstringtruenonenone
»» websiteNamestringtruenonenone
»» logostringtruenonenone
»» footerstringtruenonenone
»» miniQrnulltruenonenone
»» backgroundnulltruenonenone
»» startTimestringtruenonenone
»» endTimestringtruenonenone
»» statusstringtruenonenone
»» menuIdstringtruenonenone
»» createBystringtruenonenone
»» updateBystringtruenonenone
»» delFlagstringtruenonenone
»» createTimestringtruenonenone
»» updateTimestringtruenonenone
»» fullNamestringtruenonenone
»» simpleNamestringtruenonenone
»» subtitlestringtruenone标题
»» faviconPathstringtruenoneico
»» icpstringtruenoneicp备案号
»» organizerstringtruenone机构
» okbooleantruenonenone

POST 上传文件

POST /admin/sys-file/upload

主要上传logo,浏览器图标,获取临时文件信息

Body 请求参数

yaml
file: file://E:\图片素材\1 (17).png

请求参数

名称位置类型必选说明
Authorizationheaderstringnone
Content-Typeheaderstringnone
bodybodyobjectnone
» filebodystring(binary)上传文件

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "bucketName": "local",
    "fileName": "9d65216519c0494fb379511d321a0447.png",
    "url": "/admin/sys-file/oss/file?fileName=9d65216519c0494fb379511d321a0447.png"
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» bucketNamestringtruenonenone
»» fileNamestringtruenone文件存储名称
»» urlstringtruenone文件地址
» okbooleantruenonenone

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"
}

请求参数

名称位置类型必选说明
Authorizationheaderstringnone
bodybodyobjectnone
» idbodyintegernone
» fullNamebodystringnone
» simpleNamebodystringnone
» subtitlebodystringnone
» faviconPathbodystringnone
» icpbodystringnone
» organizerbodystringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": true,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» databooleantruenonenone
» okbooleantruenonenone

Released under the MIT License.