Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
c15a08d6
Commit
c15a08d6
authored
Oct 12, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai助手
parent
0abe87a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
143 additions
and
1 deletion
+143
-1
ch-dao/src/main/java/com/wwdz/ch/db/mapper/AiAssistantMapper.java
...rc/main/java/com/wwdz/ch/db/mapper/AiAssistantMapper.java
+69
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/AiDefaultQuestionMapper.java
...n/java/com/wwdz/ch/db/mapper/AiDefaultQuestionMapper.java
+72
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/AiAssistantController.java
...c/main/java/com/wwdz/ch/wx/web/AiAssistantController.java
+2
-1
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/mapper/AiAssistantMapper.java
0 → 100644
View file @
c15a08d6
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
ch-dao/src/main/java/com/wwdz/ch/db/mapper/AiDefaultQuestionMapper.java
0 → 100644
View file @
c15a08d6
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
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/AiAssistantController.java
View file @
c15a08d6
...
...
@@ -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
AiDef
aultQuestionService
aiDefaultQuestionService
;
@ApiOperation
(
value
=
"查询ai助手列表"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment