mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-18 00:07:21 +00:00
(improvement) (common) add sys parameter setting (#384)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -300,7 +300,7 @@ public class LoadModelDataDemo implements CommandLineRunner {
|
||||
|
||||
public void addAuthGroup_1() {
|
||||
AuthGroup authGroupReq = new AuthGroup();
|
||||
authGroupReq.setModelId("1");
|
||||
authGroupReq.setModelId(1L);
|
||||
authGroupReq.setName("admin-permission");
|
||||
|
||||
List<AuthRule> authRules = new ArrayList<>();
|
||||
@@ -317,7 +317,7 @@ public class LoadModelDataDemo implements CommandLineRunner {
|
||||
|
||||
public void addAuthGroup_2() {
|
||||
AuthGroup authGroupReq = new AuthGroup();
|
||||
authGroupReq.setModelId("1");
|
||||
authGroupReq.setModelId(1L);
|
||||
authGroupReq.setName("tom_sales_permission");
|
||||
|
||||
List<AuthRule> authRules = new ArrayList<>();
|
||||
|
||||
@@ -87,4 +87,7 @@ CREATE TABLE s2_sys_parameter
|
||||
id int primary key AUTO_INCREMENT COMMENT '主键id',
|
||||
admin varchar(500) COMMENT '系统管理员',
|
||||
parameters text null COMMENT '配置项'
|
||||
);
|
||||
);
|
||||
|
||||
--20231114
|
||||
alter table s2_chat_config add column `llm_examples` text COMMENT 'llm examples';
|
||||
Reference in New Issue
Block a user