refactor(llm): 优化知识库文件上传状态枚举类- 添加 Lombok 注解,简化代码结构
- 删除冗余的 get 方法,利用 Lombok 自动生成
This commit is contained in:
parent
aae2c064cb
commit
7bd527e444
@ -1,8 +1,11 @@
|
||||
package cn.iocoder.yudao.module.llm.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @Description 知识库文件上传状态
|
||||
*/
|
||||
@Getter
|
||||
public enum KnowledgeStatusEnum {
|
||||
|
||||
/**
|
||||
@ -46,21 +49,4 @@ public enum KnowledgeStatusEnum {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取状态码
|
||||
*
|
||||
* @return 状态码
|
||||
*/
|
||||
public Integer getStatus () {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取状态名称
|
||||
*
|
||||
* @return 状态名称
|
||||
*/
|
||||
public String getName () {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user