feat: 嵌入式管理

This commit is contained in:
fit2cloud-chenyw 2023-11-17 23:35:07 +08:00
parent 715e76c7be
commit 24c1810cd6
9 changed files with 101 additions and 2 deletions

View File

@ -94,6 +94,7 @@ public class MenuManage {
|| coreMenu.getId().equals(17L)
|| coreMenu.getId().equals(18L)
|| coreMenu.getId().equals(21L)
|| coreMenu.getPid().equals(21L);
|| coreMenu.getPid().equals(21L)
|| coreMenu.getId().equals(25L);
}
}

View File

@ -22,6 +22,7 @@ i18n_menu.sync=\u540C\u6B65\u7BA1\u7406
i18n_menu.summary=\u6982\u89C8
i18n_menu.ds=\u6570\u636E\u6E90\u7BA1\u7406
i18n_menu.task=\u4EFB\u52A1\u7BA1\u7406
i18n_menu.embedded=\u5D4C\u5165\u5F0F\u7BA1\u7406
i18n_field_name_repeat=\u6709\u91CD\u590D\u5B57\u6BB5\u540D\uFF1A
i18n_pid_not_eq_id=\u79FB\u52A8\u76EE\u6807\u4E0D\u80FD\u662F\u81EA\u5DF1\u6216\u5B50\u76EE\u5F55
i18n_ds_name_exists=\u8BE5\u5206\u7EC4\u4E0B\u540D\u79F0\u91CD\u590D

View File

@ -0,0 +1,4 @@
<svg width="18" height="16" viewBox="0 0 18 16" xmlns="http://www.w3.org/2000/svg">
<path d="M9.22368 0.225297L17.6143 5.56475C17.8715 5.72848 17.8715 6.10407 17.6143 6.2678L9.22369 11.6073C9.0872 11.6941 8.91278 11.6941 8.77629 11.6073L0.385719 6.2678C0.128427 6.10407 0.128427 5.72848 0.385718 5.56475L8.77629 0.225297C8.91278 0.138443 9.0872 0.138443 9.22368 0.225297ZM2.9377 5.91628L8.99999 9.77409L15.0623 5.91628L8.99999 2.05846L2.9377 5.91628Z" />
<path d="M1.16368 9.57137C0.967505 9.45108 0.71096 9.51261 0.590674 9.70879L0.155081 10.4192C0.0347947 10.6154 0.0963176 10.8719 0.292496 10.9922L7.92179 15.6701C8.4571 15.9983 9.12617 15.9983 9.66148 15.6701L17.2908 10.9922C17.487 10.8719 17.5485 10.6154 17.4282 10.4192L16.9926 9.70879C16.8723 9.51261 16.6158 9.45108 16.4196 9.57137L8.90053 14.1816C8.83371 14.2226 8.74955 14.2226 8.68274 14.1816L1.16368 9.57137Z" />
</svg>

After

Width:  |  Height:  |  Size: 883 B

@ -1 +1 @@
Subproject commit 9fe00fdb3accef3e87d27dbd59f8a3c6e1cf51c9
Subproject commit a0ed462213c8f274e09305cdc2ab0b238e9a2547

View File

@ -0,0 +1,30 @@
package io.dataease.api.permissions.embedded.api;
import io.dataease.api.permissions.embedded.dto.EmbeddedCreator;
import io.dataease.api.permissions.embedded.dto.EmbeddedEditor;
import io.dataease.api.permissions.embedded.dto.EmbeddedResetRequest;
import io.dataease.api.permissions.embedded.vo.EmbeddedGridVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
public interface EmbeddedApi {
@GetMapping("/queryGrid")
List<EmbeddedGridVO> queryGrid();
@PostMapping("/create")
void create(@RequestBody EmbeddedCreator creator);
@PostMapping("/edit")
void edit(@RequestBody EmbeddedEditor editor);
@PostMapping("/delete/{id}")
void delete(@PathVariable("id") Long id);
@PostMapping("/reset")
void reset(@RequestBody EmbeddedResetRequest request);
}

View File

@ -0,0 +1,13 @@
package io.dataease.api.permissions.embedded.dto;
import lombok.Data;
import java.io.Serializable;
@Data
public class EmbeddedCreator implements Serializable {
private String name;
private String domain;
}

View File

@ -0,0 +1,15 @@
package io.dataease.api.permissions.embedded.dto;
import lombok.Data;
import java.io.Serializable;
@Data
public class EmbeddedEditor implements Serializable {
private Long id;
private String name;
private String domain;
}

View File

@ -0,0 +1,13 @@
package io.dataease.api.permissions.embedded.dto;
import lombok.Data;
import java.io.Serializable;
@Data
public class EmbeddedResetRequest implements Serializable {
private Long id;
private String appSecret;
}

View File

@ -0,0 +1,22 @@
package io.dataease.api.permissions.embedded.vo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serializable;
@Data
public class EmbeddedGridVO implements Serializable {
@JsonSerialize(using= ToStringSerializer.class)
private Long id;
private String name;
private String appId;
private String appSecret;
private String domain;
}