feat: 展示 AI 资源创建人信息
- 为 Bot、工作流、知识库、插件列表补充创建人名称回填 - 在卡片中展示创建者与创建时间 - 补充后端与前端对应测试
This commit is contained in:
@@ -29,6 +29,9 @@ public class Bot extends BotBase {
|
||||
@Column(ignore = true)
|
||||
private String displayPublishStatus;
|
||||
|
||||
@Column(ignore = true)
|
||||
private String createdByName;
|
||||
|
||||
public boolean isAnonymousEnabled() {
|
||||
Map<String, Object> options = getOptions();
|
||||
if (options == null) {
|
||||
@@ -62,4 +65,22 @@ public class Bot extends BotBase {
|
||||
this.displayPublishStatus = displayPublishStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取创建人展示名称。
|
||||
*
|
||||
* @return 创建人展示名称
|
||||
*/
|
||||
public String getCreatedByName() {
|
||||
return createdByName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置创建人展示名称。
|
||||
*
|
||||
* @param createdByName 创建人展示名称
|
||||
*/
|
||||
public void setCreatedByName(String createdByName) {
|
||||
this.createdByName = createdByName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,9 @@ public class DocumentCollection extends DocumentCollectionBase implements Visibi
|
||||
@Column(ignore = true)
|
||||
private String displayPublishStatus;
|
||||
|
||||
@Column(ignore = true)
|
||||
private String createdByName;
|
||||
|
||||
public static final String TYPE_DOCUMENT = "DOCUMENT";
|
||||
public static final String TYPE_FAQ = "FAQ";
|
||||
|
||||
@@ -169,4 +172,22 @@ public class DocumentCollection extends DocumentCollectionBase implements Visibi
|
||||
public void setDisplayPublishStatus(String displayPublishStatus) {
|
||||
this.displayPublishStatus = displayPublishStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取创建人展示名称。
|
||||
*
|
||||
* @return 创建人展示名称
|
||||
*/
|
||||
public String getCreatedByName() {
|
||||
return createdByName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置创建人展示名称。
|
||||
*
|
||||
* @param createdByName 创建人展示名称
|
||||
*/
|
||||
public void setCreatedByName(String createdByName) {
|
||||
this.createdByName = createdByName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,9 @@ public class Plugin extends PluginBase {
|
||||
@com.mybatisflex.annotation.Column(ignore = true)
|
||||
private String reasonMessage;
|
||||
|
||||
@com.mybatisflex.annotation.Column(ignore = true)
|
||||
private String createdByName;
|
||||
|
||||
public String getTitle() {
|
||||
return this.getName();
|
||||
}
|
||||
@@ -74,4 +77,22 @@ public class Plugin extends PluginBase {
|
||||
public void setReasonMessage(String reasonMessage) {
|
||||
this.reasonMessage = reasonMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取创建人展示名称。
|
||||
*
|
||||
* @return 创建人展示名称
|
||||
*/
|
||||
public String getCreatedByName() {
|
||||
return createdByName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置创建人展示名称。
|
||||
*
|
||||
* @param createdByName 创建人展示名称
|
||||
*/
|
||||
public void setCreatedByName(String createdByName) {
|
||||
this.createdByName = createdByName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,9 @@ public class Workflow extends WorkflowBase implements VisibilityResource {
|
||||
@Column(ignore = true)
|
||||
private String displayPublishStatus;
|
||||
|
||||
@Column(ignore = true)
|
||||
private String createdByName;
|
||||
|
||||
public Tool toFunction(boolean needEnglishName) {
|
||||
return new WorkflowTool(this, needEnglishName);
|
||||
}
|
||||
@@ -57,4 +60,22 @@ public class Workflow extends WorkflowBase implements VisibilityResource {
|
||||
public void setDisplayPublishStatus(String displayPublishStatus) {
|
||||
this.displayPublishStatus = displayPublishStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取创建人展示名称。
|
||||
*
|
||||
* @return 创建人展示名称
|
||||
*/
|
||||
public String getCreatedByName() {
|
||||
return createdByName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置创建人展示名称。
|
||||
*
|
||||
* @param createdByName 创建人展示名称
|
||||
*/
|
||||
public void setCreatedByName(String createdByName) {
|
||||
this.createdByName = createdByName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user