AI接入逻辑完善
This commit is contained in:
@@ -42,6 +42,21 @@ public class ChatGPTClient {
|
||||
@Value("${chatGpt.modelJxCv}")
|
||||
private String modelJxCv;
|
||||
|
||||
@Value("${chatGpt.modelJd}")
|
||||
private String modelJd;
|
||||
|
||||
@Value("${chatGpt.modelIsq}")
|
||||
private String modelIsq;
|
||||
|
||||
@Value("${chatGpt.modelRoleCv}")
|
||||
private String modelRoleCv;
|
||||
|
||||
@Value("${chatGpt.modelCvJx}")
|
||||
private String modelCvJx;
|
||||
|
||||
@Value("${chatGpt.modelCbqpf}")
|
||||
private String modelCbqpf;
|
||||
|
||||
@Value("${chatGpt.role}")
|
||||
private String role;
|
||||
|
||||
@@ -71,6 +86,16 @@ public class ChatGPTClient {
|
||||
resultText = sendMessage(promptText, model,objectMapper,client,role);
|
||||
}else if("JX".equals(type)){
|
||||
resultText = sendMessage(promptText, modelJxCv,objectMapper,client,role);
|
||||
}else if("JD".equals(type)){
|
||||
resultText = sendMessage(promptText, modelJd,objectMapper,client,role);
|
||||
}else if("ISQ".equals(type)){
|
||||
resultText = sendMessage(promptText, modelIsq,objectMapper,client,role);
|
||||
}else if("ROLECV".equals(type)){
|
||||
resultText = sendMessage(promptText, modelRoleCv,objectMapper,client,role);
|
||||
}else if("CVJX".equals(type)){
|
||||
resultText = sendMessage(promptText, modelCvJx,objectMapper,client,role);
|
||||
}else if("CBQPF".equals(type)){
|
||||
resultText = sendMessage(promptText, modelCbqpf,objectMapper,client,role);
|
||||
}else {
|
||||
resultText = sendMessage(promptText, modelQuestion,objectMapper,client,role);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.vetti.common.core.domain.dto;
|
||||
|
||||
import com.vetti.common.core.domain.entity.SysUser;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 系统登陆返回登陆对象
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class LoginDto {
|
||||
|
||||
|
||||
@ApiModelProperty("令牌")
|
||||
private String token;
|
||||
|
||||
@ApiModelProperty("用户ID")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty("用户信息对象")
|
||||
private SysUser user;
|
||||
|
||||
}
|
||||
@@ -127,6 +127,9 @@ public class SysUser extends BaseEntity
|
||||
@ApiModelProperty("用户标识(1:新用户,2:老用户)")
|
||||
private String userFlag;
|
||||
|
||||
@ApiModelProperty("用户操作状态(1:初始化,2:已保存,3:已跳过)")
|
||||
private String userOperStatus;
|
||||
|
||||
@ApiModelProperty("用户语音配置信息")
|
||||
private String userSetJson;
|
||||
|
||||
@@ -496,6 +499,15 @@ public class SysUser extends BaseEntity
|
||||
this.jobTitle = jobTitle;
|
||||
}
|
||||
|
||||
|
||||
public String getUserOperStatus() {
|
||||
return userOperStatus;
|
||||
}
|
||||
|
||||
public void setUserOperStatus(String userOperStatus) {
|
||||
this.userOperStatus = userOperStatus;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
|
||||
Reference in New Issue
Block a user