feat: 记录任务的所有问答

This commit is contained in:
yokowu
2025-07-03 10:15:35 +08:00
parent 9fdcfe89b4
commit 7426de7ba6
34 changed files with 1095 additions and 372 deletions

View File

@@ -24,8 +24,6 @@ const (
FieldRequestID = "request_id"
// FieldModelType holds the string denoting the model_type field in the database.
FieldModelType = "model_type"
// FieldPrompt holds the string denoting the prompt field in the database.
FieldPrompt = "prompt"
// FieldIsAccept holds the string denoting the is_accept field in the database.
FieldIsAccept = "is_accept"
// FieldProgramLanguage holds the string denoting the program_language field in the database.
@@ -83,7 +81,6 @@ var Columns = []string{
FieldModelID,
FieldRequestID,
FieldModelType,
FieldPrompt,
FieldIsAccept,
FieldProgramLanguage,
FieldWorkMode,
@@ -149,11 +146,6 @@ func ByModelType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldModelType, opts...).ToFunc()
}
// ByPrompt orders the results by the prompt field.
func ByPrompt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPrompt, opts...).ToFunc()
}
// ByIsAccept orders the results by the is_accept field.
func ByIsAccept(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldIsAccept, opts...).ToFunc()