12345678910111213141516171819202122232425262728 |
- package rag
- import (
- "eta/eta_api/global"
- "eta/eta_api/utils"
- "time"
- )
- type PromoteTrainRecord struct {
- Id int `gorm:"id;primaryKey"`
- Title string `gorm:"title"`
- WechatArticleId int `gorm:"wechat_article_id"`
- TemplatePromote string `gorm:"template_promote"`
- PromoteSendTime time.Time `gorm:"promote_send_time"`
- AigcContent string `gorm:"aigc_content"`
- AigcSendTime time.Time `gorm:"aigc_send_time"`
- IsDeleted bool `gorm:"is_deleted"`
- CreatedTime time.Time `gorm:"created_time"`
- UpdateTime time.Time `gorm:"update_time"`
- }
- func (p *PromoteTrainRecord) TableName() string {
- return "promote_train_record"
- }
- func (p *PromoteTrainRecord) SaveContent() error {
- return global.DbMap[utils.DbNameAI].Create(p).Error
- }
|