Merge pull request #8464 from dataease/pr@dev-v2@feat_xpack_bind_user

feat(X-Pack): 第三方平台绑定用户
This commit is contained in:
fit2cloud-chenyw 2024-03-12 18:59:52 +08:00 committed by GitHub
commit 4cb5c54aa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 42 additions and 1 deletions

@ -1 +1 @@
Subproject commit 62920fd79c962635398ee96c60f26bd7e902423f
Subproject commit 77019bc3a40ca1c7a31100cdce52920444a3c7d1

View File

@ -34,4 +34,8 @@ public interface DingtalkApi {
@Operation(summary = "验证可用性")
@PostMapping("/validate")
void validate(@RequestBody DingtalkSettingCreator creator);
@Operation(summary = "钉钉绑定", hidden = true)
@PostMapping("/bind")
void bind(@RequestBody DingtalkTokenRequest request);
}

View File

@ -34,4 +34,8 @@ public interface LarkApi {
@Operation(summary = "验证可用性")
@PostMapping("/validate")
void validate(@RequestBody LarkSettingCreator creator);
@Operation(summary = "飞书绑定", hidden = true)
@PostMapping("/bind")
void bind(@RequestBody LarkTokenRequest request);
}

View File

@ -34,4 +34,8 @@ public interface LarksuiteApi {
@Operation(summary = "验证可用性")
@PostMapping("/validate")
void validate(@RequestBody LarkSettingCreator creator);
@Operation(summary = "国际飞书绑定", hidden = true)
@PostMapping("/bind")
void bind(@RequestBody LarkTokenRequest request);
}

View File

@ -34,4 +34,8 @@ public interface WecomApi {
@Operation(summary = "验证可用性")
@PostMapping("/validate")
void validate(@RequestBody WecomCreator creator);
@Operation(summary = "企微绑定用户", hidden = true)
@PostMapping("/bind")
void bind(@RequestBody WecomTokenRequest request);
}

View File

@ -160,4 +160,16 @@ public interface UserApi {
@Hidden
@PostMapping("/all")
List<UserItem> allUser(@RequestBody KeywordRequest request);
@Hidden
@PostMapping("/bind")
void bind(@RequestBody UserBindRequest request);
@Operation(summary = "解除绑定")
@PostMapping("/unBind/{origin}")
void unBind(@PathVariable("origin") Integer origin);
@Operation(summary = "绑定状态")
@GetMapping("/bindStatus")
List<Integer> bindStatus();
}

View File

@ -0,0 +1,13 @@
package io.dataease.api.permissions.user.dto;
import lombok.Data;
import java.io.Serializable;
@Data
public class UserBindRequest implements Serializable {
private Integer origin;
private String sub;
}