1. 生成工具
gin-user
  • 配置管理
    • 获取系统前台配置信息,主要注意这里不在验证权限
      GET
    • 获取配置
      GET
    • 设置配置
      PUT
    • 获取配置管理列表
      GET
    • 创建配置管理
      POST
    • 删除配置管理
      DELETE
    • 根据Key获取SysConfig的Service
      GET
    • 修改配置管理
      PUT
  • 登陆
    • 获取验证码
      GET
    • 登陆
      POST
  • 工具
    • 生成工具
      • 分页列表数据 / page list data
        GET
      • 分页列表数据 / page list data
        GET
      • 修改表结构
        PUT
      • 添加表结构
        POST
      • 获取配置
        GET
      • 删除表结构
        DELETE
      • 分页列表数据
        GET
    • 获取客户端IP地理位置信息
      GET
    • 根据IP获取地理位置信息
      GET
  • 部门
    • 分页部门列表数据
      GET
    • 添加部门
      POST
    • 删除部门
      DELETE
    • 获取部门数据
      GET
    • 修改部门
      PUT
  • 字典数据
    • 数据字典根据key获取
    • 字典数据列表
    • 添加字典数据
    • 删除字典数据
    • 通过编码获取字典数据
    • 修改字典数据
  • 字典类型
    • 字典类型列表数据
    • 添加字典类型
    • 删除字典类型
    • 字典类型全部数据 代码生成使用接口
    • 字典类型通过字典id获取
    • 修改字典类型
  • 个人中心
    • 获取个人信息
    • 修改头像
    • 获取个人中心用户
  • 菜单
    • Menu列表数据
    • 创建菜单
    • 删除菜单
    • Menu详情数据
    • 修改菜单
    • 角色修改使用的菜单列表
    • 根据登录角色名称获取菜单列表数据(左菜单使用)
  • 岗位
    • 岗位列表数据
    • 添加岗位
    • 删除岗位
    • 修改岗位
    • 获取岗位信息
  • 公共接口
    • 上传图片
  • 角色
    • Role
      • 角色列表数据
      • 创建角色
      • 删除用户角色
      • 更新角色数据权限
      • 获取Role数据
      • 修改用户角色
  • 系统信息
    • 系统信息
  • 接口管理
    • 获取接口管理列表
    • 删除接口管理
    • 获取接口管理
    • 修改接口管理
  • 登录日志
    • 登录日志列表
    • 登录日志删除
    • 登录日志通过id获取
  • 操作日志
    • 操作日志列表
    • 删除操作日志
    • 操作日志通过id获取
  • 用户
    • 列表用户信息数据
    • 创建用户
    • 获取用户
    • 修改用户数据
    • 删除用户数据
    • 重置用户密码
    • 修改密码
    • 修改用户状态
  • 用户角色管理
    • 获取拥有指定角色的用户列表
    • 获取用户角色列表
    • 设置用户角色
    • 为用户添加角色
    • 移除用户角色
  • 退出登录
    POST
  • 退出登录
    POST
  1. 生成工具

修改表结构

PUT
/api/v1/sys/tables/info
修改表结构

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json必填

示例
{
    "businessName": "string",
    "className": "string",
    "columns": [
        {
            "columnComment": "string",
            "columnId": 0,
            "columnName": "string",
            "columnType": "string",
            "createBy": 0,
            "createdAt": "string",
            "deletedAt": "string",
            "dictType": "string",
            "edit": true,
            "fkCol": [
                {}
            ],
            "fkLabelId": "string",
            "fkLabelName": "string",
            "fkTableName": "string",
            "fkTableNameClass": "string",
            "fkTableNamePackage": "string",
            "goField": "string",
            "goType": "string",
            "htmlType": "string",
            "increment": true,
            "insert": true,
            "isEdit": "string",
            "isIncrement": "string",
            "isInsert": "string",
            "isList": "string",
            "isPk": "string",
            "isQuery": "string",
            "isRequired": "string",
            "jsonField": "string",
            "list": "string",
            "pk": true,
            "query": true,
            "queryType": "string",
            "remark": "string",
            "required": true,
            "sort": 0,
            "superColumn": true,
            "tableId": 0,
            "updateBy": 0,
            "updatedAt": "string",
            "usableColumn": true
        }
    ],
    "createBy": 0,
    "createdAt": "string",
    "crud": true,
    "dataScope": "string",
    "deletedAt": "string",
    "functionAuthor": "string",
    "functionName": "string",
    "isActions": 0,
    "isAuth": 0,
    "isDataScope": 0,
    "isLogicalDelete": "string",
    "logicalDelete": true,
    "logicalDeleteColumn": "string",
    "moduleFrontName": "string",
    "moduleName": "string",
    "options": "string",
    "packageName": "string",
    "params": {
        "treeCode": "string",
        "treeName": "string",
        "treeParentCode": "string"
    },
    "pkColumn": "string",
    "pkGoField": "string",
    "pkJsonField": "string",
    "remark": "string",
    "tableComment": "string",
    "tableId": 0,
    "tableName": "string",
    "tplCategory": "string",
    "tree": true,
    "treeCode": "string",
    "treeName": "string",
    "treeParentCode": "string",
    "updateBy": 0,
    "updatedAt": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://gin-user-center.jinxinapp.cn/api/v1/sys/tables/info' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "businessName": "string",
    "className": "string",
    "columns": [
        {
            "columnComment": "string",
            "columnId": 0,
            "columnName": "string",
            "columnType": "string",
            "createBy": 0,
            "createdAt": "string",
            "deletedAt": "string",
            "dictType": "string",
            "edit": true,
            "fkCol": [
                {}
            ],
            "fkLabelId": "string",
            "fkLabelName": "string",
            "fkTableName": "string",
            "fkTableNameClass": "string",
            "fkTableNamePackage": "string",
            "goField": "string",
            "goType": "string",
            "htmlType": "string",
            "increment": true,
            "insert": true,
            "isEdit": "string",
            "isIncrement": "string",
            "isInsert": "string",
            "isList": "string",
            "isPk": "string",
            "isQuery": "string",
            "isRequired": "string",
            "jsonField": "string",
            "list": "string",
            "pk": true,
            "query": true,
            "queryType": "string",
            "remark": "string",
            "required": true,
            "sort": 0,
            "superColumn": true,
            "tableId": 0,
            "updateBy": 0,
            "updatedAt": "string",
            "usableColumn": true
        }
    ],
    "createBy": 0,
    "createdAt": "string",
    "crud": true,
    "dataScope": "string",
    "deletedAt": "string",
    "functionAuthor": "string",
    "functionName": "string",
    "isActions": 0,
    "isAuth": 0,
    "isDataScope": 0,
    "isLogicalDelete": "string",
    "logicalDelete": true,
    "logicalDeleteColumn": "string",
    "moduleFrontName": "string",
    "moduleName": "string",
    "options": "string",
    "packageName": "string",
    "params": {
        "treeCode": "string",
        "treeName": "string",
        "treeParentCode": "string"
    },
    "pkColumn": "string",
    "pkGoField": "string",
    "pkJsonField": "string",
    "remark": "string",
    "tableComment": "string",
    "tableId": 0,
    "tableName": "string",
    "tplCategory": "string",
    "tree": true,
    "treeCode": "string",
    "treeName": "string",
    "treeParentCode": "string",
    "updateBy": 0,
    "updatedAt": "string"
}'

返回响应

🟢200成功
*/*
{"code": -1, "message": "添加失败"}
Body

示例
"string"
修改于 2025-09-05 03:45:07
上一页
分页列表数据 / page list data
下一页
添加表结构
Built with