feat(work): 新增上下游规则相关接口

This commit is contained in:
Fu Diwei
2022-05-01 22:51:41 +08:00
parent 9d2e86750e
commit 2671db1f7e
26 changed files with 514 additions and 22 deletions

View File

@@ -0,0 +1,5 @@
{
"chain_id": "Chxxxxxx",
"groupid": 1,
"fetch_child": 0
}

View File

@@ -6,7 +6,8 @@
"groupid": 2,
"corpid": "wwxxxx",
"corp_name": "美馨粮油公司",
"custom_id": "wof3du51quo5sl1is"
"custom_id": "custom_id",
"invite_userid": "zhangsan"
}
]
}

View File

@@ -0,0 +1,13 @@
{
"chain_id": "Chxxxxxx",
"rule_info": {
"owner_corp_range": {
"departmentids": [ 123 ],
"userids": [ "userid1", "userid2" ]
},
"member_corp_range": {
"groupids": [ 123 ],
"corpids": [ "corpid1", "corpid2" ]
}
}
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"rule_id": 1
}

View File

@@ -0,0 +1,4 @@
{
"chain_id": "Chxxxxxx",
"rule_id": 1
}

View File

@@ -0,0 +1,4 @@
{
"chain_id": "Chxxxxxx",
"rule_id": 1
}

View File

@@ -0,0 +1,14 @@
{
"errcode": 0,
"errmsg": "ok",
"rule_info": {
"owner_corp_range": {
"departmentids": [ 123 ],
"userids": [ "userid1", "userid2" ]
},
"member_corp_range": {
"groupids": [ 123 ],
"corpids": [ "corpid1", "corpid2" ]
}
}
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"rule_ids": [ 1, 2 ]
}

View File

@@ -0,0 +1,14 @@
{
"chain_id": "Chxxxxxx",
"rule_id": 1,
"rule_info": {
"owner_corp_range": {
"departmentids": [ 123 ],
"userids": [ "userid1", "userid2" ]
},
"member_corp_range": {
"groupids": [ 123 ],
"corpids": [ "corpid1", "corpid2" ]
}
}
}