feat(X-Pack): 增加创建第三方平台用户接口

This commit is contained in:
fit2cloud-chenyw
2025-03-20 11:03:16 +08:00
committed by xuwei-fit2cloud
parent 464ddcb7a2
commit 85d502ba27
2 changed files with 19 additions and 0 deletions

View File

@@ -61,6 +61,11 @@ public interface UserApi {
@PostMapping("/create")
void create(@RequestBody UserCreator creator);
@Operation(summary = "创建第三方用户")
@DePermit("m:read")
@PostMapping("/createPlatform")
void createPlatform(@RequestBody PlatformUserCreator creator);
@Operation(summary = "编辑")
@DePermit({"m:read", "#p0.id + ':manage'"})
@PostMapping("/edit")

View File

@@ -0,0 +1,14 @@
package io.dataease.api.permissions.user.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@Schema(description = "第三方平台用户构造器")
@EqualsAndHashCode(callSuper = true)
@Data
public class PlatformUserCreator extends UserCreator implements Serializable {
@Schema(description = "用户来源")
private int origin;
}