个人简历逻辑添加
This commit is contained in:
@@ -171,7 +171,7 @@ public class ChatWebSocketHandler {
|
||||
}
|
||||
Map<String,String> mapEntity = new HashMap<>();
|
||||
mapEntity.put("role","system");
|
||||
mapEntity.put("content","You are an interviewer. Generate follow-up questions based on Construction Labourer candidate responses.");
|
||||
mapEntity.put("content","You are an interviewer. Generate follow-up questions based on Construction Labourer candidate responses.Return Only One Question");
|
||||
List<Map<String,String>> list = new LinkedList();
|
||||
list.add(mapEntity);
|
||||
promptJson = JSONUtil.toJsonStr(list);
|
||||
@@ -252,7 +252,7 @@ public class ChatWebSocketHandler {
|
||||
List<Map> list = JSONUtil.toList(msgMapData, Map.class);
|
||||
Map<String,String> mapEntity = new HashMap<>();
|
||||
mapEntity.put("role","user");
|
||||
mapEntity.put("content","问题:"+questionResult+"\\n候选人回答:{}");
|
||||
mapEntity.put("content","Question:"+questionResult+"\\nCandidate Answer:{}");
|
||||
list.add(mapEntity);
|
||||
cacheMsgMapData.put(session.getId(),JSONUtil.toJsonStr(list));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.vetti.web.controller.hotake;
|
||||
|
||||
import com.vetti.common.annotation.Log;
|
||||
import com.vetti.common.core.controller.BaseController;
|
||||
import com.vetti.common.core.domain.AjaxResult;
|
||||
import com.vetti.common.core.domain.R;
|
||||
import com.vetti.common.core.page.TableDataInfo;
|
||||
import com.vetti.common.enums.BusinessType;
|
||||
import com.vetti.common.utils.poi.ExcelUtil;
|
||||
import com.vetti.hotake.domain.HotakeCvInfo;
|
||||
import com.vetti.hotake.service.IHotakeCvInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 简历信息Controller
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2025-11-02
|
||||
*/
|
||||
@Api(tags ="简历信息")
|
||||
@RestController
|
||||
@RequestMapping("/hotake/cvInfo")
|
||||
public class HotakeCvInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IHotakeCvInfoService hotakeCvInfoService;
|
||||
|
||||
/**
|
||||
* 查询简历信息列表
|
||||
*/
|
||||
@ApiOperation("查询简历信息列表(分页)")
|
||||
@GetMapping("/getPagelist")
|
||||
public TableDataInfo list(HotakeCvInfo hotakeCvInfo)
|
||||
{
|
||||
startPage();
|
||||
List<HotakeCvInfo> list = hotakeCvInfoService.selectHotakeCvInfoList(hotakeCvInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询简历信息列表
|
||||
*/
|
||||
@ApiOperation("查询简历信息列表(无分页)")
|
||||
@GetMapping("/getList")
|
||||
public R<List<HotakeCvInfo>> getList(HotakeCvInfo hotakeCvInfo)
|
||||
{
|
||||
List<HotakeCvInfo> list = hotakeCvInfoService.selectHotakeCvInfoList(hotakeCvInfo);
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取简历信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取简历信息详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R<HotakeCvInfo> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return R.ok(hotakeCvInfoService.selectHotakeCvInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增简历信息
|
||||
*/
|
||||
@ApiOperation("新增简历信息")
|
||||
@Log(title = "简历信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R add(@RequestBody HotakeCvInfo hotakeCvInfo)
|
||||
{
|
||||
return R.ok(hotakeCvInfoService.insertHotakeCvInfo(hotakeCvInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改简历信息
|
||||
*/
|
||||
@ApiOperation("修改简历信息")
|
||||
@Log(title = "简历信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R edit(@RequestBody HotakeCvInfo hotakeCvInfo)
|
||||
{
|
||||
return R.ok(hotakeCvInfoService.updateHotakeCvInfo(hotakeCvInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除简历信息
|
||||
*/
|
||||
@ApiOperation("删除简历信息")
|
||||
@Log(title = "简历信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{id}")
|
||||
public R remove(@PathVariable Long id)
|
||||
{
|
||||
return R.ok(hotakeCvInfoService.deleteHotakeCvInfoById(id));
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,15 @@
|
||||
package com.vetti.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.vetti.common.core.domain.R;
|
||||
import com.vetti.common.enums.UserOperStepsEnum;
|
||||
import com.vetti.hotake.domain.HotakeCvInfo;
|
||||
import com.vetti.hotake.service.IHotakeCvInfoService;
|
||||
import com.vetti.web.entity.dto.SysUserDto;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -48,19 +53,27 @@ public class SysProfileController extends BaseController
|
||||
@Autowired
|
||||
private TokenService tokenService;
|
||||
|
||||
@Autowired
|
||||
private IHotakeCvInfoService cvInfoService;
|
||||
|
||||
/**
|
||||
* 个人信息
|
||||
*/
|
||||
@ApiOperation("个人信息")
|
||||
@GetMapping("/personalInfo")
|
||||
public R<SysUser> profile()
|
||||
public R<SysUserDto> profile()
|
||||
{
|
||||
SysUserDto dto =new SysUserDto();
|
||||
LoginUser loginUser = getLoginUser();
|
||||
SysUser user = userService.selectUserById(loginUser.getUserId());
|
||||
R r = R.ok(user);
|
||||
BeanUtil.copyProperties(user,dto);
|
||||
HotakeCvInfo query = new HotakeCvInfo();
|
||||
query.setUserId(user.getUserId());
|
||||
List<HotakeCvInfo> cvInfoList = cvInfoService.selectHotakeCvInfoList(query);
|
||||
dto.setCvInfoList(cvInfoList);
|
||||
// ajax.put("roleGroup", userService.selectUserRoleGroup(loginUser.getUsername()));
|
||||
// ajax.put("postGroup", userService.selectUserPostGroup(loginUser.getUsername()));
|
||||
return r;
|
||||
return R.ok(dto);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.vetti.web.entity.dto;
|
||||
|
||||
import com.vetti.common.core.domain.entity.SysUser;
|
||||
import com.vetti.hotake.domain.HotakeCvInfo;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户信息对象
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2025-11-02
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class SysUserDto extends SysUser {
|
||||
|
||||
@ApiModelProperty("简历数据集合")
|
||||
private List<HotakeCvInfo> cvInfoList;
|
||||
}
|
||||
Reference in New Issue
Block a user