解决合并后出现的问题,为swagger提供禁用选项,暂时移除wiki
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
)
|
||||
|
||||
// TextureType 材质类型
|
||||
// @Description 材质类型枚举:SKIN(皮肤)或CAPE(披风)
|
||||
type TextureType string
|
||||
|
||||
const (
|
||||
@@ -13,6 +14,7 @@ const (
|
||||
)
|
||||
|
||||
// Texture 材质模型
|
||||
// @Description Minecraft材质数据模型
|
||||
type Texture struct {
|
||||
ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
UploaderID int64 `gorm:"column:uploader_id;not null;index:idx_textures_uploader_status,priority:1;index:idx_textures_uploader_created,priority:1" json:"uploader_id"`
|
||||
@@ -40,6 +42,7 @@ func (Texture) TableName() string {
|
||||
}
|
||||
|
||||
// UserTextureFavorite 用户材质收藏
|
||||
// @Description 用户收藏材质关联表
|
||||
type UserTextureFavorite struct {
|
||||
ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
UserID int64 `gorm:"column:user_id;not null;uniqueIndex:uk_user_texture,priority:1;index:idx_favorites_user_created,priority:1" json:"user_id"`
|
||||
@@ -57,6 +60,7 @@ func (UserTextureFavorite) TableName() string {
|
||||
}
|
||||
|
||||
// TextureDownloadLog 材质下载记录
|
||||
// @Description 材质下载日志记录
|
||||
type TextureDownloadLog struct {
|
||||
ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
TextureID int64 `gorm:"column:texture_id;not null;index:idx_download_logs_texture_created,priority:1" json:"texture_id"`
|
||||
|
||||
Reference in New Issue
Block a user