odin后端接口
  1. 模板
odin后端接口
  • 页面
    • 新增/修改页面信息
      POST
    • 新增站群系统
      POST
    • 查询页面信息
      POST
    • 新增/修改页面路径
      POST
    • 获取页面路径
      POST
    • 查询该用户下所有的站群系统
      POST
    • 删除指定站群系统
      POST
    • 修改页面路径
      POST
    • 根据站群名称获取配置信息
      POST
    • 下载页面
      GET
    • 下载站群系统
      GET
  • 用户
    • 验证码
      • 手机号登陆-发送验证码
      • 手机号登陆-校验验证码
      • 发送邮箱验证码
    • 第三方登录
      • gitee
        • 第三方登录-gitee
        • 第三方登录回调-gitee
      • github
        • 第三方登录-github
        • 第三方登录回调-github
      • 是否为新用户
        • 是否新进入工作台
        • 是否新进入编辑器
      • 绑定现有账户
      • 绑定新增账户
      • 获取用户第三方账户信息
      • 解绑第三方账户
    • 用户登录
      POST
    • 退出登录
      POST
    • 更新用户
      POST
    • 删除用户
      POST
    • 新增用户
      POST
    • 修改用户密码
      POST
    • 忘记密码
      POST
    • 通过id查询用户
      GET
    • 通过姓名模糊查询用户
      GET
    • 获取角色和VIP等级对应关系
      GET
    • 分页查询所有用户(root)
      GET
  • 角色和权限
    • 角色域
      • 查询所有角色类型
      • 查询所有用户和角色对应关系
      • 查询该角色下的所有用户
      • 查询该用户角色
      • 增加或修改用户角色
      • 删除用户角色
    • 权限域
      • 查询所有权限类型
      • 增加用户/角色权限
      • 查询该用户权限
      • 删除用户权限
      • 为某个页面增加权限限制
      • 查询站群下所有的权限设置
      • 查询该路径的权限设置
    • 测试用户页面权限
  • 上传文件和图片
    • 获取用户所有文件
    • 下载文件
    • 上传文件
    • 上传图片
    • 删除图片或文件
    • 根据url获取文件信息
    • 分页查询所有文件和图片信息(Root权限)
    • 根据用户id获取所有图片
  • 支付
    • 支付宝支付
    • 分页查询所有订单信息(Root)
    • 分页查询所有vip用户的信息
    • 支付回调
  • 搜索
    • 模糊搜索页面
    • 模糊搜索站群
  • 帮助中心
    • 问答交流
      • 管理员
        • 获取所有待审核问题
        • 发布回答
        • 审核问题通过
        • 获取全部问题
      • 获取问题列表
      • 发布问题
      • 获取问题详情
      • 采纳回答
      • 更新问题
      • 点赞回答
      • 搜索问题
      • 点赞问题
      • 获取热搜词(前十)
    • 文章公告
      • 文章
        • 获取文章列表
        • 根据id获取文章
        • 添加文章
        • 修改文章
        • 删除文章
      • 公告
        • 获取公告
        • 添加公告
        • 修改公告
        • 删除公告
      • 联系方式
        • 获取联系方式
        • 修改联系方式
      • 新手教程
        • 获取所有新手教程
        • 添加新手教程
  • 模板
    • 获取模板展示页信息(不含页面json)
      GET
    • 获取全部模板并根据热度(权重)排序
      GET
    • 获取某模板展示信息(不含json)
      GET
    • 获取某模板具体信息(含json)
      GET
    • 根据分类获取模板(未完成)
      GET
    • 爬虫脚本上传到数据库
      POST
    • 搜索模板
      GET
    • 从模板中心新建站群
      POST
    • 新增模板
      POST
    • 更新模板
      POST
  • 后台接口
    • 更新模板权重
  1. 模板

更新模板

测试中
POST
/api/amis/updateTemplate

请求参数

Body 参数application/json
object {0}
示例
{
    "id": "6408a9d93565307a662f63f9",
    "config": {
        "container": {
            "height": 3500
        },
        "blocks": [
            {
                "bgcImage": null,
                "rotate": 0,
                "boxShadow": {
                    "color": "#000",
                    "blurRadius": 0,
                    "x": 0,
                    "y": 0,
                    "SpreadRadius": 0
                },
                "link": "https://icqq5dmqiq.feishu.cn/drive/home/",
                "zoom": 1,
                "bgcColor": null,
                "top": "3177.5",
                "size": 16,
                "borderRadius": 0,
                "left": 702,
                "width": 112,
                "text": "不洗碗工作室",
                "opacity": 1,
                "key": "文本框",
                "fontColor": null,
                "fontWeight": "normal",
                "zIndex": 1,
                "height": 21,
                "bgcSize": "cover"
            }
        ],
        "zoom": 1
    },
    "configs": [
        {
            "route": "/1",
            "id": "6408a9d93565307a662f63f9/1",
            "templateId": "6408a9d93565307a662f63f9",
            "config": {
                "container": {
                    "height": 3500
                },
                "blocks": [
                    {
                        "bgcImage": null,
                        "rotate": 0,
                        "boxShadow": {
                            "color": "#000",
                            "blurRadius": 0,
                            "x": 0,
                            "y": 0,
                            "SpreadRadius": 0
                        },
                        "link": "https://icqq5dmqiq.feishu.cn/drive/home/",
                        "zoom": 1,
                        "bgcColor": null,
                        "top": "3177.5",
                        "size": 16,
                        "borderRadius": 0,
                        "left": 702,
                        "width": 112,
                        "text": "不洗碗工作室",
                        "opacity": 1,
                        "key": "文本框",
                        "fontColor": null,
                        "fontWeight": "normal",
                        "zIndex": 1,
                        "height": 21,
                        "bgcSize": "cover"
                    }
                ],
                "zoom": 1
            }
        },
        {
            "route": "/test2",
            "id": "6408a9d93565307a662f63f9/test2",
            "templateId": "6408a9d93565307a662f63f9",
            "config": {
                "container": {
                    "height": 3500
                },
                "blocks": [
                    {
                        "bgcImage": null,
                        "rotate": 0,
                        "boxShadow": {
                            "color": "#000",
                            "blurRadius": 0,
                            "x": 0,
                            "y": 0,
                            "SpreadRadius": 0
                        },
                        "link": "https://icqq5dmqiq.feishu.cn/drive/home/",
                        "zoom": 1,
                        "bgcColor": null,
                        "top": "3177.5",
                        "size": 16,
                        "borderRadius": 0,
                        "left": 702,
                        "width": 112,
                        "text": "不洗碗工作室",
                        "opacity": 1,
                        "key": "文本框",
                        "fontColor": null,
                        "fontWeight": "normal",
                        "zIndex": 1,
                        "height": 21,
                        "bgcSize": "cover"
                    }
                ],
                "zoom": 1
            }
        }
    ],
    "category": "test",
    "hot": 0,
    "name": "test1先生",
    "introduction": "工程师团队",
    "labels": [
        "商务",
        "领先"
    ],
    "maker": "odin offical",
    "downloads": 0,
    "photos": [
        "https://my.alfred.edu/zoom/_images/foster-lake.jpg",
        "https://www.pixelstalk.net/wp-content/uploads/2016/07/Nature-wallpapers-hd-backgroud-1080p.jpg"
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://47.92.1.39:8005/api/amis/updateTemplate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "6408a9d93565307a662f63f9",
    "config": {
        "container": {
            "height": 3500
        },
        "blocks": [
            {
                "bgcImage": null,
                "rotate": 0,
                "boxShadow": {
                    "color": "#000",
                    "blurRadius": 0,
                    "x": 0,
                    "y": 0,
                    "SpreadRadius": 0
                },
                "link": "https://icqq5dmqiq.feishu.cn/drive/home/",
                "zoom": 1,
                "bgcColor": null,
                "top": "3177.5",
                "size": 16,
                "borderRadius": 0,
                "left": 702,
                "width": 112,
                "text": "不洗碗工作室",
                "opacity": 1,
                "key": "文本框",
                "fontColor": null,
                "fontWeight": "normal",
                "zIndex": 1,
                "height": 21,
                "bgcSize": "cover"
            }
        ],
        "zoom": 1
    },
    "configs": [
        {
            "route": "/1",
            "id": "6408a9d93565307a662f63f9/1",
            "templateId": "6408a9d93565307a662f63f9",
            "config": {
                "container": {
                    "height": 3500
                },
                "blocks": [
                    {
                        "bgcImage": null,
                        "rotate": 0,
                        "boxShadow": {
                            "color": "#000",
                            "blurRadius": 0,
                            "x": 0,
                            "y": 0,
                            "SpreadRadius": 0
                        },
                        "link": "https://icqq5dmqiq.feishu.cn/drive/home/",
                        "zoom": 1,
                        "bgcColor": null,
                        "top": "3177.5",
                        "size": 16,
                        "borderRadius": 0,
                        "left": 702,
                        "width": 112,
                        "text": "不洗碗工作室",
                        "opacity": 1,
                        "key": "文本框",
                        "fontColor": null,
                        "fontWeight": "normal",
                        "zIndex": 1,
                        "height": 21,
                        "bgcSize": "cover"
                    }
                ],
                "zoom": 1
            }
        },
        {
            "route": "/test2",
            "id": "6408a9d93565307a662f63f9/test2",
            "templateId": "6408a9d93565307a662f63f9",
            "config": {
                "container": {
                    "height": 3500
                },
                "blocks": [
                    {
                        "bgcImage": null,
                        "rotate": 0,
                        "boxShadow": {
                            "color": "#000",
                            "blurRadius": 0,
                            "x": 0,
                            "y": 0,
                            "SpreadRadius": 0
                        },
                        "link": "https://icqq5dmqiq.feishu.cn/drive/home/",
                        "zoom": 1,
                        "bgcColor": null,
                        "top": "3177.5",
                        "size": 16,
                        "borderRadius": 0,
                        "left": 702,
                        "width": 112,
                        "text": "不洗碗工作室",
                        "opacity": 1,
                        "key": "文本框",
                        "fontColor": null,
                        "fontWeight": "normal",
                        "zIndex": 1,
                        "height": 21,
                        "bgcSize": "cover"
                    }
                ],
                "zoom": 1
            }
        }
    ],
    "category": "test",
    "hot": 0,
    "name": "test1先生",
    "introduction": "工程师团队",
    "labels": [
        "商务",
        "领先"
    ],
    "maker": "odin offical",
    "downloads": 0,
    "photos": [
        "https://my.alfred.edu/zoom/_images/foster-lake.jpg",
        "https://www.pixelstalk.net/wp-content/uploads/2016/07/Nature-wallpapers-hd-backgroud-1080p.jpg"
    ]
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
    "success": true,
    "errCode": null,
    "errMessage": null
}
上一页
新增模板
下一页
更新模板权重
Built with