Commit c15a08d6 authored by shiyu's avatar shiyu

ai助手

parent 0abe87a3
package com.wwdz.ch.db.mapper;
import com.wwdz.ch.db.domain.AiAssistant;
import com.wwdz.ch.db.domain.AiAssistantExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface AiAssistantMapper {
long countByExample(AiAssistantExample example);
int deleteByExample(AiAssistantExample example);
int deleteByPrimaryKey(Integer id);
int insert(AiAssistant record);
int insertSelective(AiAssistant record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_assistant
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AiAssistant selectOneByExample(AiAssistantExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_assistant
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AiAssistant selectOneByExampleSelective(@Param("example") AiAssistantExample example, @Param("selective") AiAssistant.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_assistant
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<AiAssistant> selectByExampleSelective(@Param("example") AiAssistantExample example, @Param("selective") AiAssistant.Column ... selective);
List<AiAssistant> selectByExample(AiAssistantExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_assistant
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AiAssistant selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") AiAssistant.Column ... selective);
AiAssistant selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") AiAssistant record, @Param("example") AiAssistantExample example);
int updateByExample(@Param("record") AiAssistant record, @Param("example") AiAssistantExample example);
int updateByPrimaryKeySelective(AiAssistant record);
int updateByPrimaryKey(AiAssistant record);
}
\ No newline at end of file
package com.wwdz.ch.db.mapper;
import com.wwdz.ch.db.domain.AiDefaultQuestion;
import com.wwdz.ch.db.domain.AiDefaultQuestionExample;
import java.util.List;
import com.wwdz.ch.db.dto.request.AiDefaultQuestionRequestDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface AiDefaultQuestionMapper {
long countByExample(AiDefaultQuestionExample example);
int deleteByExample(AiDefaultQuestionExample example);
int deleteByPrimaryKey(Integer id);
int insert(AiDefaultQuestion record);
int insertSelective(AiDefaultQuestion record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_default_question
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AiDefaultQuestion selectOneByExample(AiDefaultQuestionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_default_question
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AiDefaultQuestion selectOneByExampleSelective(@Param("example") AiDefaultQuestionExample example, @Param("selective") AiDefaultQuestion.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_default_question
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<AiDefaultQuestion> selectByExampleSelective(@Param("example") AiDefaultQuestionExample example, @Param("selective") AiDefaultQuestion.Column ... selective);
List<AiDefaultQuestion> selectByExample(AiDefaultQuestionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ai_default_question
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AiDefaultQuestion selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") AiDefaultQuestion.Column ... selective);
AiDefaultQuestion selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") AiDefaultQuestion record, @Param("example") AiDefaultQuestionExample example);
int updateByExample(@Param("record") AiDefaultQuestion record, @Param("example") AiDefaultQuestionExample example);
int updateByPrimaryKeySelective(AiDefaultQuestion record);
int updateByPrimaryKey(AiDefaultQuestion record);
List<AiDefaultQuestion> selectRandom(@Param("dto") AiDefaultQuestionRequestDto dto);
}
\ No newline at end of file
......@@ -5,6 +5,7 @@ import com.wwdz.ch.core.consts.ResultCode;
import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dto.request.AiAssistantRequestDto;
import com.wwdz.ch.wx.service.AiAssistantService;
import com.wwdz.ch.wx.service.AiDefaultQuestionService;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -24,7 +25,7 @@ public class AiAssistantController {
AiAssistantService aiAssistantService;
@Autowired
AiDef
AiDefaultQuestionService aiDefaultQuestionService;
@ApiOperation(value = "查询ai助手列表")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment