Skip to content

岗位&职级

获取岗位树

GET /posts

权限

  • 需要认证

响应

json
[
    {
        "id": "group24",
        "name": "1234567",
        "selectable": false,
        "nodes": [
            {
                "id": "108",
                "name": "一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十",
                "groupId": "24",
                "seq": "0",
                "code": "JOB001i",
                "description": "",
                "rankId": "14",
                "createdUserId": "1051",
                "createdTime": "1600311942",
                "updatedTime": "1615352384",
                "nodes": []
            },
            {
                "id": "110",
                "name": "一二三四五六七八九的十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九一二三四五六七八九的十一二三四五六七八九十一二三四五六七八九",
                "groupId": "24",
                "seq": "3",
                "code": "YESSWLQBJDSYESSWLQBJSYESSWLQBJ110",
                "description": null,
                "rankId": "0",
                "createdUserId": "1051",
                "createdTime": "1600312422",
                "updatedTime": "1600312422",
                "nodes": []
            },
            {
                "id": "122",
                "name": "oo",
                "groupId": "24",
                "seq": "5",
                "code": "GG",
                "description": null,
                "rankId": "3",
                "createdUserId": "1051",
                "createdTime": "1601189980",
                "updatedTime": "1601196386",
                "nodes": []
            },
            {
                "id": "123",
                "name": "安静的联发科技的",
                "groupId": "24",
                "seq": "6",
                "code": "AJDLFKJD",
                "description": null,
                "rankId": "0",
                "createdUserId": "1051",
                "createdTime": "1601189998",
                "updatedTime": "1601189998",
                "nodes": []
            },
            {
                "id": "124",
                "name": "阿斯顿发射点",
                "groupId": "24",
                "seq": "7",
                "code": "ASDFSD1",
                "description": "",
                "rankId": "0",
                "createdUserId": "1051",
                "createdTime": "1601189998",
                "updatedTime": "1605519088",
                "nodes": []
            },
            {
                "id": "125",
                "name": "啊手动阀啊",
                "groupId": "24",
                "seq": "8",
                "code": "ASDFA",
                "description": null,
                "rankId": "0",
                "createdUserId": "1051",
                "createdTime": "1601189998",
                "updatedTime": "1601189998",
                "nodes": []
            },
            {
                "id": "129",
                "name": "啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊",
                "groupId": "24",
                "seq": "9",
                "code": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
                "description": null,
                "rankId": "0",
                "createdUserId": "1211",
                "createdTime": "1602465201",
                "updatedTime": "1602465201",
                "nodes": []
            },
            {
                "id": "130",
                "name": "11111",
                "groupId": "24",
                "seq": "10",
                "code": "TYSHD",
                "description": null,
                "rankId": "0",
                "createdUserId": "1183",
                "createdTime": "1603178990",
                "updatedTime": "1603178990",
                "nodes": []
            },
            {
                "id": "134",
                "name": "一",
                "groupId": "24",
                "seq": "12",
                "code": "Y",
                "description": null,
                "rankId": "0",
                "createdUserId": "1315",
                "createdTime": "1605685086",
                "updatedTime": "1605685086",
                "nodes": []
            },
            {
                "id": "135",
                "name": "二",
                "groupId": "24",
                "seq": "13",
                "code": "E",
                "description": null,
                "rankId": "0",
                "createdUserId": "1315",
                "createdTime": "1605685086",
                "updatedTime": "1605685086",
                "nodes": []
            },
            {
                "id": "136",
                "name": "三",
                "groupId": "24",
                "seq": "14",
                "code": "S",
                "description": null,
                "rankId": "0",
                "createdUserId": "1315",
                "createdTime": "1605685086",
                "updatedTime": "1605685086",
                "nodes": []
            },
            {
                "id": "137",
                "name": "四",
                "groupId": "24",
                "seq": "15",
                "code": "S137",
                "description": null,
                "rankId": "0",
                "createdUserId": "1315",
                "createdTime": "1605685086",
                "updatedTime": "1605685086",
                "nodes": []
            },
            {
                "id": "138",
                "name": "五",
                "groupId": "24",
                "seq": "16",
                "code": "W",
                "description": null,
                "rankId": "0",
                "createdUserId": "1315",
                "createdTime": "1605685086",
                "updatedTime": "1605685086",
                "nodes": []
            },
            {
                "id": "139",
                "name": "六",
                "groupId": "24",
                "seq": "17",
                "code": "L",
                "description": null,
                "rankId": "0",
                "createdUserId": "1315",
                "createdTime": "1605685086",
                "updatedTime": "1605685086",
                "nodes": []
            },
            {
                "id": "158",
                "name": "企业大学-高级开发工程师",
                "groupId": "24",
                "seq": "18",
                "code": "QYDXBGJKFGCS",
                "description": null,
                "rankId": "0",
                "createdUserId": "337",
                "createdTime": "1609177762",
                "updatedTime": "1609177762",
                "nodes": []
            },
            {
                "id": "167",
                "name": "从",
                "groupId": "24",
                "seq": "19",
                "code": "C167",
                "description": null,
                "rankId": "0",
                "createdUserId": "2082",
                "createdTime": "1615352989",
                "updatedTime": "1615352989",
                "nodes": []
            }
        ]
    }
]

字段说明

名称类型必选约束说明
» idinteger(int64)falsenonenone
» namestringfalsenonenone
» selectablebooleanfalsenone是否可选中
» nodesobjectfalsenonenone
»» idinteger(int64)falsenonenone
»» groupIdintegerfalsenonenone
»» seqstringfalsenonenone
»» codestringfalsenonenone
»» createdUserIdintegerfalsenonenone
»» namestringfalsenonenone
»» createdTimestringfalsenonenone
»» updatedTimestringfalsenonenone
»» nodesobjectfalsenonenone

获取职级树

GET /plugins/post_map/post_ranks

权限

  • 需要认证

响应

json
[
    {
        "id": "group1",
        "name": "专家线",
        "selectable": false,
        "nodes": [
            {
                "id": "1",
                "name": "P1",
                "groupId": "1",
                "seq": "1",
                "createdUserId": "2",
                "createdTime": "1521180501",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "2",
                "name": "P2",
                "groupId": "1",
                "seq": "2",
                "createdUserId": "2",
                "createdTime": "1521180510",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "4",
                "name": "P3",
                "groupId": "1",
                "seq": "3",
                "createdUserId": "2",
                "createdTime": "1521180529",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "3",
                "name": "P4",
                "groupId": "1",
                "seq": "4",
                "createdUserId": "2",
                "createdTime": "1521180523",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "5",
                "name": "P5",
                "groupId": "1",
                "seq": "5",
                "createdUserId": "2",
                "createdTime": "1521180535",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "6",
                "name": "P6",
                "groupId": "1",
                "seq": "6",
                "createdUserId": "2",
                "createdTime": "1521180548",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "7",
                "name": "P7",
                "groupId": "1",
                "seq": "7",
                "createdUserId": "2",
                "createdTime": "1521180593",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "8",
                "name": "P8",
                "groupId": "1",
                "seq": "8",
                "createdUserId": "2",
                "createdTime": "1521180599",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "9",
                "name": "P9",
                "groupId": "1",
                "seq": "9",
                "createdUserId": "2",
                "createdTime": "1521180610",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "11",
                "name": "P10",
                "groupId": "1",
                "seq": "10",
                "createdUserId": "2",
                "createdTime": "1521180619",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "12",
                "name": "P11",
                "groupId": "1",
                "seq": "11",
                "createdUserId": "2",
                "createdTime": "1521180624",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "13",
                "name": "P12",
                "groupId": "1",
                "seq": "12",
                "createdUserId": "2",
                "createdTime": "1521180631",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "24",
                "name": "P13",
                "groupId": "1",
                "seq": "13",
                "createdUserId": "2",
                "createdTime": "1521181215",
                "updatedTime": "1599126010",
                "nodes": []
            },
            {
                "id": "36",
                "name": "qa",
                "groupId": "1",
                "seq": "14",
                "createdUserId": "337",
                "createdTime": "1614842976",
                "updatedTime": "1614842976",
                "nodes": []
            }
        ]
    },
    {
        "id": "group2",
        "name": "管理线",
        "selectable": false,
        "nodes": [
            {
                "id": "14",
                "name": "M1",
                "groupId": "2",
                "seq": "1",
                "createdUserId": "2",
                "createdTime": "1521180658",
                "updatedTime": "1521180875",
                "nodes": []
            },
            {
                "id": "19",
                "name": "M2",
                "groupId": "2",
                "seq": "2",
                "createdUserId": "2",
                "createdTime": "1521180871",
                "updatedTime": "1521180875",
                "nodes": []
            },
            {
                "id": "15",
                "name": "M3",
                "groupId": "2",
                "seq": "3",
                "createdUserId": "2",
                "createdTime": "1521180670",
                "updatedTime": "1521180875",
                "nodes": []
            },
            {
                "id": "20",
                "name": "M4",
                "groupId": "2",
                "seq": "4",
                "createdUserId": "2",
                "createdTime": "1521180883",
                "updatedTime": "1521180883",
                "nodes": []
            },
            {
                "id": "21",
                "name": "M5",
                "groupId": "2",
                "seq": "5",
                "createdUserId": "2",
                "createdTime": "1521180889",
                "updatedTime": "1521180889",
                "nodes": []
            },
            {
                "id": "34",
                "name": "M6",
                "groupId": "2",
                "seq": "6",
                "createdUserId": "1051",
                "createdTime": "1592549761",
                "updatedTime": "1592549761",
                "nodes": []
            }
        ]
    },
    {
        "id": "group5",
        "name": "测试1产品晋升线",
        "selectable": false,
        "nodes": [
            {
                "id": "29",
                "name": "PM3",
                "groupId": "5",
                "seq": "1",
                "createdUserId": "2",
                "createdTime": "1582869115",
                "updatedTime": "1582869115",
                "nodes": []
            },
            {
                "id": "30",
                "name": "PM4",
                "groupId": "5",
                "seq": "2",
                "createdUserId": "2",
                "createdTime": "1582869124",
                "updatedTime": "1582869124",
                "nodes": []
            },
            {
                "id": "31",
                "name": "PM5",
                "groupId": "5",
                "seq": "3",
                "createdUserId": "2",
                "createdTime": "1582869179",
                "updatedTime": "1582869179",
                "nodes": []
            }
        ]
    }
]

字段说明

名称类型必选约束说明
» idinteger(int64)falsenonenone
» namestringfalsenonenone
» selectablebooleanfalsenone是否可选中
» nodesobjectfalsenonenone
»» idinteger(int64)falsenonenone
»» groupIdintegerfalsenonenone
»» seqstringfalsenonenone
»» codestringfalsenonenone
»» createdUserIdintegerfalsenonenone
»» namestringfalsenonenone
»» createdTimestringfalsenonenone
»» updatedTimestringfalsenonenone
»» nodesobjectfalsenonenone