README.md 1.8 KB

character-library-metadata-bastion

源文件管理

  • 文件列表 - list
  • 上传 - 上传oss / 创建file
  • 加载 - loadDataTable
  • 编辑 - editDataTable
  • 持久化 - flushDataTable
  • 导出 - url
  • 删除 - delete
  • 操作日志 - log

  • editDataTable params 列表

加载表格数据 loadDataTable - 查询

{
  "fileId": 1,
  "where": [
      {
        "field": {
          "index": 1,
          "name": "产品名称"
        },
        "in": ["a","b"],
        "ex": ["c","d"],
        "sort": ["a","asc"]
      }
  ]
}

编辑表格 editDataTable

{
   "field": {
     "index": 1,
     "name": "产品名称"
   },
   "operation": {
     "desc": ["拆分","按字符数"],
     "code": "split_by_char_number"
   },
   "params": []
}

精简

{
   "field":  "产品名称",
   "desc": ["拆分","按字符数"],
   "operationCode": "split_by_char_number",
   "params": []
}

params 列表

数据展示

{
    "code": 0,
    "data": {
        "dataFields": [
            {
                "index": 1,
                "name": "产品名称",
                "Type": "string"
            },
            {
                "index": 2,
                "name": "产品数量",
                "Type": "number"
            }
        ],
        "dataRows": [
            [
                "素面",
                200
            ],
            [
                "冻豆腐",
                400
            ],
            [
                "冻豆腐1",
                300
            ],
            [
                "冻豆2",
                "A"
            ]
        ],
        "total": 100,
        "pageNumber": 1,
        "inValidCells": [
            {
                "x": 1,
                "y": 3,
                "error": "不是一个有效的数值"
            }
        ]
    },
    "msg": "ok"
}