Documentation
¶
Overview ¶
自动生成模板Conversation
自动生成模板ConversationRecord
自动生成模板Feedback
Package openfish 自动生成模板SecretKey
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conversation ¶
type Conversation struct { global.Model ConversationName string `json:"conversationName" form:"conversationName" gorm:"column:conversation_name;comment:会话名称;"` ConversationType uint `` /* 151-byte string literal not displayed */ PromptId uint `json:"promptId" form:"promptId" gorm:"column:prompt_id;comment:提示词ID;"` CreatedBy uint `gorm:"column:created_by;comment:创建者"` UpdatedBy uint `gorm:"column:updated_by;comment:更新者"` DeletedBy uint `gorm:"column:deleted_by;comment:删除者"` }
Conversation 结构体
type ConversationRecord ¶
type ConversationRecord struct { global.Model ConversationId *uint `json:"conversationId" form:"conversationId" gorm:"column:conversation_id;not null;comment:会话ID;"` Content string `` /* 194-byte string literal not displayed */ Role string `json:"role" form:"role" gorm:"column:role;comment:用户角色;"` CreatedBy uint `gorm:"column:created_by;comment:创建者"` UpdatedBy uint `gorm:"column:updated_by;comment:更新者"` DeletedBy uint `gorm:"column:deleted_by;comment:删除者"` }
ConversationRecord 结构体
func (ConversationRecord) TableName ¶
func (ConversationRecord) TableName() string
TableName Conversation 表名
type Feedback ¶
type Feedback struct { global.Model FeedbackText string `json:"feedbackText" form:"feedbackText" gorm:"column:feedback_text;type:longtext;comment:反馈的文字内容;"` ParentId *int `json:"parentId" form:"parentId" gorm:"default:0;not null;column:parent_id;comment:反馈的上级ID,主要用于回复;"` CreatedBy uint `gorm:"column:created_by;comment:创建者"` UpdatedBy uint `gorm:"column:updated_by;comment:更新者"` DeletedBy uint `gorm:"column:deleted_by;comment:删除者"` }
Feedback 结构体
type FeedbackVo ¶
FeedbackVo 结构体
type MailAccount ¶
type MailAccount struct { global.Model Username string `json:"username" form:"username" gorm:"column:username;comment:mail账号;"` NickName string `json:"nickName" form:"nickName" gorm:"column:nick_name;comment:mail昵称;"` Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:mail备注;"` Password string `json:"password" form:"password" gorm:"column:password;comment:mail密码;"` ClaudeSessionKey string `json:"claudeSessionKey" form:"claudeSessionKey" gorm:"column:claude_session_key;comment:claude SessionKey;type:longtext;"` ClaudeSessionKeyGetTime *time.Time `` /* 143-byte string literal not displayed */ OpenaiPassword string `json:"openaiPassword" form:"openaiPassword" gorm:"column:openai_password;comment:openai密码;"` OpenaiAccessToken string `json:"openaiAccessToken" form:"openaiAccessToken" gorm:"column:openai_access_token;comment:openai AccessToken;type:longtext;"` OpenaiPuid string `json:"openaiPuid" form:"openaiPuid" gorm:"column:openai_puid;comment:openai puid;type:longtext;"` OpenaiAccessTokenUseTime *time.Time `` /* 147-byte string literal not displayed */ OpenaiAccessTokenGetTime *time.Time `` /* 147-byte string literal not displayed */ OpenaiSkExpire *time.Time `json:"openaiSkExpire" form:"openaiSkExpire" gorm:"column:openai_sk_expire;comment:openai sk 过期时间;"` SkUsedAt *time.Time `json:"skUsedAt" form:"skUsedAt" gorm:"column:sk_used_at;comment:openai sk 使用时间;"` OpenaiSk string `json:"openaiSk" form:"openaiSk" gorm:"column:openai_sk;comment:openai密钥;"` OpenaiAmount *uint `json:"openaiAmount" form:"openaiAmount" gorm:"column:openai_amount;comment:openai余额,使用额度;"` OpenaiStatus *uint `` /* 131-byte string literal not displayed */ UniqueName string `json:"uniqueName" form:"uniqueName" gorm:"column:unique_name;comment:pandora share token唯一值;"` TokenKey string `json:"tokenKey" form:"tokenKey" gorm:"column:token_key;comment:pandora share token;"` SiteLimit string `json:"siteLimit" form:"siteLimit" gorm:"column:site_limit;comment:pandora share token 站点限制;"` ExpireAt int `json:"expireAt" form:"expireAt" gorm:"column:expire_at;comment:pandora share token 过期时间;"` OpenaiRefreshToken string `json:"openaiRefreshToken" form:"openaiRefreshToken" gorm:"column:openai_refresh_token;comment:pandora OpenaiRefreshToken;"` OpenaiSessionToken string `` /* 136-byte string literal not displayed */ }
MailAccount 结构体
type Prompt ¶
type Prompt struct { global.Model Name string `json:"name" form:"name" gorm:"column:name;type:longtext;comment:表示提示词的名称。;"` Description string `` /* 126-byte string literal not displayed */ UseFee *int `json:"useFee" form:"useFee" gorm:"column:use_fee;comment:表示提示词的价格。0表示无限制;"` Content string `json:"content" form:"content" gorm:"column:content;type:longtext;comment:提示词内容;"` ShortcutKey string `json:"shortcutKey" form:"shortcutKey" gorm:"column:shortcut_key;comment:快捷键;"` Category *int `json:"category" form:"category" gorm:"column:category;comment:类别分类;"` UseDuration *int `json:"useDuration" form:"useDuration" gorm:"column:use_duration;comment:使用时间,0表示无限制;"` }
Prompt 结构体
type SecretKey ¶
type SecretKey struct { global.Model Sk string `json:"sk" form:"sk" gorm:"column:sk;comment:密钥;"` SkName string `json:"skName" form:"skName" gorm:"column:sk_name;comment:密钥名字;not null;default:'sk';"` Expire *int64 `json:"expire" form:"expire" gorm:"column:expire;comment:过期时间;not null;default:0;"` Amount *int `json:"amount" form:"amount" gorm:"column:amount;comment:余额,使用额度;not null;default:0;"` Status *int `json:"status" form:"status" gorm:"column:status;comment:状态:0封禁,1正常;not null;default:1;"` CreatedBy uint `gorm:"column:created_by;comment:创建者"` UpdatedBy uint `gorm:"column:updated_by;comment:更新者"` DeletedBy uint `gorm:"column:deleted_by;comment:删除者"` }
SecretKey 结构体
Source Files
¶
Click to show internal directories.
Click to hide internal directories.