Documentation ¶
Index ¶
- type ApiGroup
- type ConversationApi
- func (conversationApi *ConversationApi) ChatCompletions(c *gin.Context)
- func (conversationApi *ConversationApi) ChatCompletionsV2(c *gin.Context)
- func (conversationApi *ConversationApi) CreateConversation(c *gin.Context)
- func (conversationApi *ConversationApi) DeleteConversation(c *gin.Context)
- func (conversationApi *ConversationApi) DeleteConversationByIds(c *gin.Context)
- func (conversationApi *ConversationApi) FindConversation(c *gin.Context)
- func (conversationApi *ConversationApi) GetConversationList(c *gin.Context)
- func (conversationApi *ConversationApi) GetConversationRecordList(c *gin.Context)
- func (conversationApi *ConversationApi) GetConversationRecords(c *gin.Context)
- func (conversationApi *ConversationApi) GetCurrentUserConversationList(c *gin.Context)
- func (conversationApi *ConversationApi) GetCurrentUserConversations(c *gin.Context)
- func (conversationApi *ConversationApi) OpenAIDrawing(c *gin.Context)
- func (conversationApi *ConversationApi) UpdateConversation(c *gin.Context)
- func (conversationApi *ConversationApi) UpdateConversationName(c *gin.Context)
- type FeedbackApi
- func (feedbackApi *FeedbackApi) CreateFeedback(c *gin.Context)
- func (feedbackApi *FeedbackApi) DeleteFeedback(c *gin.Context)
- func (feedbackApi *FeedbackApi) DeleteFeedbackByIds(c *gin.Context)
- func (feedbackApi *FeedbackApi) FindFeedback(c *gin.Context)
- func (feedbackApi *FeedbackApi) GetFeedbackList(c *gin.Context)
- func (feedbackApi *FeedbackApi) UpdateFeedback(c *gin.Context)
- type MailAccountApi
- func (mailAccountApi *MailAccountApi) CreateMailAccount(c *gin.Context)
- func (mailAccountApi *MailAccountApi) DeleteMailAccount(c *gin.Context)
- func (mailAccountApi *MailAccountApi) DeleteMailAccountByIds(c *gin.Context)
- func (mailAccountApi *MailAccountApi) FindMailAccount(c *gin.Context)
- func (mailAccountApi *MailAccountApi) GetMailAccountList(c *gin.Context)
- func (mailAccountApi *MailAccountApi) RefreshClaudeChat(c *gin.Context)
- func (mailAccountApi *MailAccountApi) RefreshOpenaiAccessToken(c *gin.Context)
- func (mailAccountApi *MailAccountApi) SyncChatGPTAccessToken(c *gin.Context)
- func (mailAccountApi *MailAccountApi) SyncOpenaiInfo(c *gin.Context)
- func (mailAccountApi *MailAccountApi) UpdateMailAccount(c *gin.Context)
- type PromptApi
- func (promptApi *PromptApi) CreatePrompt(c *gin.Context)
- func (promptApi *PromptApi) DeletePrompt(c *gin.Context)
- func (promptApi *PromptApi) DeletePromptByIds(c *gin.Context)
- func (promptApi *PromptApi) FindPrompt(c *gin.Context)
- func (promptApi *PromptApi) GetCurrentUserPromptList(c *gin.Context)
- func (promptApi *PromptApi) GetPromptList(c *gin.Context)
- func (promptApi *PromptApi) UpdatePrompt(c *gin.Context)
- type SecretKeyApi
- func (secretKeyApi *SecretKeyApi) CreateSecretKey(c *gin.Context)
- func (secretKeyApi *SecretKeyApi) DeleteSecretKey(c *gin.Context)
- func (secretKeyApi *SecretKeyApi) DeleteSecretKeyByIds(c *gin.Context)
- func (secretKeyApi *SecretKeyApi) FindSecretKey(c *gin.Context)
- func (secretKeyApi *SecretKeyApi) GetSecretKeyList(c *gin.Context)
- func (secretKeyApi *SecretKeyApi) UpdateSecretKey(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiGroup ¶
type ApiGroup struct { ConversationApi FeedbackApi SecretKeyApi MailAccountApi PromptApi }
type ConversationApi ¶
type ConversationApi struct { }
func (*ConversationApi) ChatCompletions ¶
func (conversationApi *ConversationApi) ChatCompletions(c *gin.Context)
ChatCompletions AI对话
func (*ConversationApi) ChatCompletionsV2 ¶
func (conversationApi *ConversationApi) ChatCompletionsV2(c *gin.Context)
func (*ConversationApi) CreateConversation ¶
func (conversationApi *ConversationApi) CreateConversation(c *gin.Context)
CreateConversation 创建Conversation @Tags Conversation @Summary 创建Conversation @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Conversation true "创建Conversation" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /conversation/createConversation [post]
func (*ConversationApi) DeleteConversation ¶
func (conversationApi *ConversationApi) DeleteConversation(c *gin.Context)
DeleteConversation 删除Conversation @Tags Conversation @Summary 删除Conversation @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Conversation true "删除Conversation" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /conversation/deleteConversation [delete]
func (*ConversationApi) DeleteConversationByIds ¶
func (conversationApi *ConversationApi) DeleteConversationByIds(c *gin.Context)
DeleteConversationByIds 批量删除Conversation @Tags Conversation @Summary 批量删除Conversation @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsReq true "批量删除Conversation" @Success 200 {string} string "{"success":true,"data":{},"msg":"批量删除成功"}" @Router /conversation/deleteConversationByIds [delete]
func (*ConversationApi) FindConversation ¶
func (conversationApi *ConversationApi) FindConversation(c *gin.Context)
FindConversation 用id查询Conversation @Tags Conversation @Summary 用id查询Conversation @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfish.Conversation true "用id查询Conversation" @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" @Router /conversation/findConversation [get]
func (*ConversationApi) GetConversationList ¶
func (conversationApi *ConversationApi) GetConversationList(c *gin.Context)
GetConversationList 分页获取Conversation列表 @Tags Conversation @Summary 分页获取Conversation列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfishReq.ConversationSearch true "分页获取Conversation列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /conversation/getConversationList [get]
func (*ConversationApi) GetConversationRecordList ¶
func (conversationApi *ConversationApi) GetConversationRecordList(c *gin.Context)
func (*ConversationApi) GetConversationRecords ¶
func (conversationApi *ConversationApi) GetConversationRecords(c *gin.Context)
func (*ConversationApi) GetCurrentUserConversationList ¶
func (conversationApi *ConversationApi) GetCurrentUserConversationList(c *gin.Context)
GetCurrentUserConversationList 获取当前用户对话列表 @Tags Conversation @Summary 分页获取当前用户对话列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfishReq.ConversationSearch true "分页获取当前用户对话列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /conversation/getConversationList [get]
func (*ConversationApi) GetCurrentUserConversations ¶
func (conversationApi *ConversationApi) GetCurrentUserConversations(c *gin.Context)
GetCurrentUserConversations 重写获取当前用户对话列表
func (*ConversationApi) OpenAIDrawing ¶
func (conversationApi *ConversationApi) OpenAIDrawing(c *gin.Context)
OpenAIDrawing openai作图
func (*ConversationApi) UpdateConversation ¶
func (conversationApi *ConversationApi) UpdateConversation(c *gin.Context)
UpdateConversation 更新Conversation @Tags Conversation @Summary 更新Conversation @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Conversation true "更新Conversation" @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" @Router /conversation/updateConversation [put]
func (*ConversationApi) UpdateConversationName ¶
func (conversationApi *ConversationApi) UpdateConversationName(c *gin.Context)
UpdateConversationName 更新聊天室名字
type FeedbackApi ¶
type FeedbackApi struct { }
func (*FeedbackApi) CreateFeedback ¶
func (feedbackApi *FeedbackApi) CreateFeedback(c *gin.Context)
CreateFeedback 创建Feedback @Tags Feedback @Summary 创建Feedback @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Feedback true "创建Feedback" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /feedback/createFeedback [post]
func (*FeedbackApi) DeleteFeedback ¶
func (feedbackApi *FeedbackApi) DeleteFeedback(c *gin.Context)
DeleteFeedback 删除Feedback @Tags Feedback @Summary 删除Feedback @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Feedback true "删除Feedback" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /feedback/deleteFeedback [delete]
func (*FeedbackApi) DeleteFeedbackByIds ¶
func (feedbackApi *FeedbackApi) DeleteFeedbackByIds(c *gin.Context)
DeleteFeedbackByIds 批量删除Feedback @Tags Feedback @Summary 批量删除Feedback @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsReq true "批量删除Feedback" @Success 200 {string} string "{"success":true,"data":{},"msg":"批量删除成功"}" @Router /feedback/deleteFeedbackByIds [delete]
func (*FeedbackApi) FindFeedback ¶
func (feedbackApi *FeedbackApi) FindFeedback(c *gin.Context)
FindFeedback 用id查询Feedback @Tags Feedback @Summary 用id查询Feedback @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfish.Feedback true "用id查询Feedback" @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" @Router /feedback/findFeedback [get]
func (*FeedbackApi) GetFeedbackList ¶
func (feedbackApi *FeedbackApi) GetFeedbackList(c *gin.Context)
GetFeedbackList 分页获取Feedback列表 @Tags Feedback @Summary 分页获取Feedback列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfishReq.FeedbackSearch true "分页获取Feedback列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /feedback/getFeedbackList [get]
func (*FeedbackApi) UpdateFeedback ¶
func (feedbackApi *FeedbackApi) UpdateFeedback(c *gin.Context)
UpdateFeedback 更新Feedback @Tags Feedback @Summary 更新Feedback @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Feedback true "更新Feedback" @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" @Router /feedback/updateFeedback [put]
type MailAccountApi ¶
type MailAccountApi struct { }
func (*MailAccountApi) CreateMailAccount ¶
func (mailAccountApi *MailAccountApi) CreateMailAccount(c *gin.Context)
CreateMailAccount 创建
func (*MailAccountApi) DeleteMailAccount ¶
func (mailAccountApi *MailAccountApi) DeleteMailAccount(c *gin.Context)
DeleteMailAccount 删除
func (*MailAccountApi) DeleteMailAccountByIds ¶
func (mailAccountApi *MailAccountApi) DeleteMailAccountByIds(c *gin.Context)
DeleteMailAccountByIds 批量删除
func (*MailAccountApi) FindMailAccount ¶
func (mailAccountApi *MailAccountApi) FindMailAccount(c *gin.Context)
FindMailAccount 用id查询
func (*MailAccountApi) GetMailAccountList ¶
func (mailAccountApi *MailAccountApi) GetMailAccountList(c *gin.Context)
GetMailAccountList GetPromptList 分页获取 mailAccount 列表
func (*MailAccountApi) RefreshClaudeChat ¶
func (mailAccountApi *MailAccountApi) RefreshClaudeChat(c *gin.Context)
RefreshClaudeChat 产生一次Claude对话
func (*MailAccountApi) RefreshOpenaiAccessToken ¶
func (mailAccountApi *MailAccountApi) RefreshOpenaiAccessToken(c *gin.Context)
RefreshOpenaiAccessToken 刷新 openai AccessToken
func (*MailAccountApi) SyncChatGPTAccessToken ¶
func (mailAccountApi *MailAccountApi) SyncChatGPTAccessToken(c *gin.Context)
func (*MailAccountApi) SyncOpenaiInfo ¶
func (mailAccountApi *MailAccountApi) SyncOpenaiInfo(c *gin.Context)
SyncOpenaiInfo 同步openai的信息: sk到期时间、余额
func (*MailAccountApi) UpdateMailAccount ¶
func (mailAccountApi *MailAccountApi) UpdateMailAccount(c *gin.Context)
UpdateMailAccount 更新
type PromptApi ¶
type PromptApi struct { }
func (*PromptApi) CreatePrompt ¶
CreatePrompt 创建Prompt @Tags Prompt @Summary 创建Prompt @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Prompt true "创建Prompt" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /prompt/createPrompt [post]
func (*PromptApi) DeletePrompt ¶
DeletePrompt 删除Prompt @Tags Prompt @Summary 删除Prompt @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Prompt true "删除Prompt" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /prompt/deletePrompt [delete]
func (*PromptApi) DeletePromptByIds ¶
DeletePromptByIds 批量删除Prompt @Tags Prompt @Summary 批量删除Prompt @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsReq true "批量删除Prompt" @Success 200 {string} string "{"success":true,"data":{},"msg":"批量删除成功"}" @Router /prompt/deletePromptByIds [delete]
func (*PromptApi) FindPrompt ¶
FindPrompt 用id查询Prompt @Tags Prompt @Summary 用id查询Prompt @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfish.Prompt true "用id查询Prompt" @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" @Router /prompt/findPrompt [get]
func (*PromptApi) GetCurrentUserPromptList ¶
GetCurrentUserPromptList TODO 获取当前用户prompt
func (*PromptApi) GetPromptList ¶
GetPromptList 分页获取Prompt列表 @Tags Prompt @Summary 分页获取Prompt列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfishReq.PromptSearch true "分页获取Prompt列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /prompt/getPromptList [get]
func (*PromptApi) UpdatePrompt ¶
UpdatePrompt 更新Prompt @Tags Prompt @Summary 更新Prompt @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.Prompt true "更新Prompt" @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" @Router /prompt/updatePrompt [put]
type SecretKeyApi ¶
type SecretKeyApi struct { }
func (*SecretKeyApi) CreateSecretKey ¶
func (secretKeyApi *SecretKeyApi) CreateSecretKey(c *gin.Context)
CreateSecretKey 创建SecretKey @Tags SecretKey @Summary 创建SecretKey @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.SecretKey true "创建SecretKey" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /secretKey/createSecretKey [post]
func (*SecretKeyApi) DeleteSecretKey ¶
func (secretKeyApi *SecretKeyApi) DeleteSecretKey(c *gin.Context)
DeleteSecretKey 删除SecretKey @Tags SecretKey @Summary 删除SecretKey @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.SecretKey true "删除SecretKey" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /secretKey/deleteSecretKey [delete]
func (*SecretKeyApi) DeleteSecretKeyByIds ¶
func (secretKeyApi *SecretKeyApi) DeleteSecretKeyByIds(c *gin.Context)
DeleteSecretKeyByIds 批量删除SecretKey @Tags SecretKey @Summary 批量删除SecretKey @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsReq true "批量删除SecretKey" @Success 200 {string} string "{"success":true,"data":{},"msg":"批量删除成功"}" @Router /secretKey/deleteSecretKeyByIds [delete]
func (*SecretKeyApi) FindSecretKey ¶
func (secretKeyApi *SecretKeyApi) FindSecretKey(c *gin.Context)
FindSecretKey 用id查询SecretKey @Tags SecretKey @Summary 用id查询SecretKey @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfish.SecretKey true "用id查询SecretKey" @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" @Router /secretKey/findSecretKey [get]
func (*SecretKeyApi) GetSecretKeyList ¶
func (secretKeyApi *SecretKeyApi) GetSecretKeyList(c *gin.Context)
GetSecretKeyList 分页获取SecretKey列表 @Tags SecretKey @Summary 分页获取SecretKey列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query openfishReq.SecretKeySearch true "分页获取SecretKey列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /secretKey/getSecretKeyList [get]
func (*SecretKeyApi) UpdateSecretKey ¶
func (secretKeyApi *SecretKeyApi) UpdateSecretKey(c *gin.Context)
UpdateSecretKey 更新SecretKey @Tags SecretKey @Summary 更新SecretKey @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body openfish.SecretKey true "更新SecretKey" @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" @Router /secretKey/updateSecretKey [put]