mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
feat(X-Pack): 增加创建第三方平台用户接口
This commit is contained in:
committed by
xuwei-fit2cloud
parent
464ddcb7a2
commit
85d502ba27
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user