数据字典编辑工具接口文档.md 2.2 KB

查询变更记录

地址:POST /rwdedit/rwdChangeRecord/query

参数

{
    "criteria":{
        "id":1,
        "code":"project",//类型编码
        "infoCode":"",//信息点编码
        "value":"project2",
        "operationType":"create",//创建:create 修改:update 删除:delete
        "operationUser":"90000000",//操作人
        "operationTime":1611295200000,//操作时间
        "confirmUser":"90000000",//确认人
        "confirmTime":1611295200000,//确认时间
        "publishUser":"90000000",//发布人
        "publishTime":1611295200000,//发布时间
        "finishTime":1611295200000,//完成时间
        "state":0//状态 0.取消 1.初始化 2.确认 3.发布 4.完成
    },
    "page":1,
    "size":10
}

返回结果

{
    "result": "success",
    "data": [
        {
            "id": 1,
            "code": "project",
            "value": "project2",
            "operationType": "update",
            "operationUser": "90000000",
            "operationTime": 1611295200000,
            "confirmUser": "90000000",
            "confirmTime": 1611295200000,
            "publishUser": "90000000",
            "publishTime": 1611295200000,
            "finishTime": 1611312582000,
            "valid": true,
            "state": 4
        }
    ],
    "count": 1
}

新增变更记录

地址:POST /rwdedit/rwdChangeRecord/create

参数

{
    "code": "projectItem",//必传
    "infoCode":"",//信息点编码必传
    "value": {
        "code": "projectItem",
        "name": "项目下级",
        "aliasCode": "projectItem",
        "aliasName": "项目下级",
        "type": "common",
        "groupCode": "0",
        "projectId": "Pj001",
        "parentCode": "project"
    },
    "operationType": "create"
}

返回结果

{
    "result": "success",
    "data": {
        "id": 2
    }
}

修改变更记录状态

地址:POST /rwdedit/rwdChangeRecord/update

参数

{
      "id":"1",
      "state":"0"//状态 0.取消 1.初始化 2.确认 3.发布 4.完成
}   

返回结果

{
    "result": "success"
}

发布下载

地址:POST /rwdedit/rwdChangeRecord/download

参数

[7,8,9,12]

返回结果 sql文件