first commit

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
HouYunFei
2026-05-19 07:53:53 +08:00
commit 472bf8b732
133 changed files with 16869 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
package model
// Prompt 提示词记录。
type Prompt struct {
ID string `json:"id" gorm:"primaryKey"`
Title string `json:"title"`
CoverURL string `json:"coverUrl"`
Prompt string `json:"prompt"`
Tags []string `json:"tags" gorm:"serializer:json"`
Category string `json:"category" gorm:"index"`
GithubURL string `json:"githubUrl" gorm:"-"`
Preview string `json:"preview"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
// PromptList 提示词分页结果。
type PromptList struct {
Items []Prompt `json:"items"`
Tags []string `json:"tags"`
Categories []string `json:"categories"`
Total int `json:"total"`
}
// PromptCategory 提示词分类。
type PromptCategory struct {
Category string `json:"category" gorm:"primaryKey"`
Name string `json:"name"`
Description string `json:"description"`
GithubURL string `json:"githubUrl"`
Remote bool `json:"remote"`
UpdatedAt string `json:"updatedAt"`
}