feat: 新增账号编码和HTTP连接功能
This commit is contained in:
@@ -1,30 +1,29 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"customer-server/consts/scriptedSpeech"
|
||||
|
||||
"gitea.com/red-future/common/beans"
|
||||
)
|
||||
|
||||
type scriptedSpeechCol struct {
|
||||
beans.SQLBaseCol
|
||||
AccountId string
|
||||
DatasetId string
|
||||
SceneType string
|
||||
QuestionContent string
|
||||
AnswerContent string
|
||||
}
|
||||
|
||||
var ScriptedSpeechCol = scriptedSpeechCol{
|
||||
SQLBaseCol: beans.DefSQLBaseCol,
|
||||
AccountId: "account_id",
|
||||
DatasetId: "dataset_id",
|
||||
SceneType: "scene_type",
|
||||
QuestionContent: "question_content",
|
||||
AnswerContent: "answer_content",
|
||||
}
|
||||
|
||||
type ScriptedSpeech struct {
|
||||
beans.SQLBaseDO `orm:",inline"`
|
||||
|
||||
AccountId int64 `orm:"account_id" json:"accountId" dc:"账号ID"`
|
||||
DatasetId int64 `orm:"dataset_id" json:"datasetId" dc:"数据集ID"`
|
||||
QuestionContent string `orm:"question_content" json:"questionContent" dc:"问题内容"`
|
||||
AnswerContent string `orm:"answer_content" json:"answerContent" dc:"回答内容"`
|
||||
DatasetId int64 `orm:"dataset_id" json:"datasetId" dc:"数据集ID"`
|
||||
SceneType scriptedSpeech.SceneType `orm:"scene_type" json:"sceneType" dc:"场景类型"`
|
||||
QuestionContent string `orm:"question_content" json:"questionContent" dc:"问题内容"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user