Documentation ¶
Index ¶
- type CreatePostParams
- type DBTX
- type GetPostByPageParams
- type GoadminMenu
- type GoadminOperationLog
- type GoadminPermission
- type GoadminRole
- type GoadminRoleMenu
- type GoadminRolePermission
- type GoadminRoleUser
- type GoadminSession
- type GoadminSite
- type GoadminUser
- type GoadminUserPermission
- type IrisMenu
- type IrisPage
- type IrisPost
- type IrisSite
- type IrisTag
- type IrisTagsPost
- type Queries
- func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) (sql.Result, error)
- func (q *Queries) DeletePost(ctx context.Context, id int64) error
- func (q *Queries) GetHotPost(ctx context.Context, limit int32) ([]IrisPost, error)
- func (q *Queries) GetLatestPost(ctx context.Context, limit int32) ([]IrisPost, error)
- func (q *Queries) GetMenu(ctx context.Context) ([]IrisMenu, error)
- func (q *Queries) GetNextPost(ctx context.Context, id int64) (IrisPost, error)
- func (q *Queries) GetPage(ctx context.Context, slug string) (IrisPage, error)
- func (q *Queries) GetPost(ctx context.Context, id int64) (IrisPost, error)
- func (q *Queries) GetPostByPage(ctx context.Context, arg GetPostByPageParams) ([]IrisPost, error)
- func (q *Queries) GetPrevPost(ctx context.Context, id int64) (IrisPost, error)
- func (q *Queries) GetSite(ctx context.Context, id int64) (IrisSite, error)
- func (q *Queries) GetTag(ctx context.Context, id int64) (IrisTag, error)
- func (q *Queries) GetTagPostId(ctx context.Context, tagID int64) ([]int64, error)
- func (q *Queries) GetTags(ctx context.Context) ([]IrisTag, error)
- func (q *Queries) GetUser(ctx context.Context, id int32) (GoadminUser, error)
- func (q *Queries) GetUsers(ctx context.Context) ([]GoadminUser, error)
- func (q *Queries) ListPosts(ctx context.Context) ([]IrisPost, error)
- func (q *Queries) ViewPlus(ctx context.Context, id int64) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePostParams ¶
type GetPostByPageParams ¶
type GoadminMenu ¶
type GoadminMenu struct { ID int32 `json:"id"` ParentID int32 `json:"parent_id"` Type int32 `json:"type"` Order int32 `json:"order"` Title string `json:"title"` Icon string `json:"icon"` Uri string `json:"uri"` Header sql.NullString `json:"header"` PluginName string `json:"plugin_name"` Uuid sql.NullString `json:"uuid"` CreatedAt sql.NullTime `json:"created_at"` UpdatedAt sql.NullTime `json:"updated_at"` }
type GoadminOperationLog ¶
type GoadminPermission ¶
type GoadminRole ¶
type GoadminRoleMenu ¶
type GoadminRolePermission ¶
type GoadminRoleUser ¶
type GoadminSession ¶
type GoadminSite ¶
type GoadminSite struct { ID int32 `json:"id"` Key sql.NullString `json:"key"` Value sql.NullString `json:"value"` Description sql.NullString `json:"description"` State int32 `json:"state"` CreatedAt sql.NullTime `json:"created_at"` UpdatedAt sql.NullTime `json:"updated_at"` }
type GoadminUser ¶
type GoadminUser struct { ID int32 `json:"id"` Username string `json:"username"` Password string `json:"password"` Name string `json:"name"` Avatar sql.NullString `json:"avatar"` RememberToken sql.NullString `json:"remember_token"` CreatedAt sql.NullTime `json:"created_at"` UpdatedAt sql.NullTime `json:"updated_at"` }
type GoadminUserPermission ¶
type IrisSite ¶
type IrisSite struct { ID int64 `json:"id"` SiteName string `json:"site_name"` SiteEmail string `json:"site_email"` Slogan sql.NullString `json:"slogan"` Notice sql.NullString `json:"notice"` }
type IrisTagsPost ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreatePost ¶
func (*Queries) GetHotPost ¶
func (*Queries) GetLatestPost ¶
func (*Queries) GetNextPost ¶
func (*Queries) GetPostByPage ¶
func (*Queries) GetPrevPost ¶
func (*Queries) GetTagPostId ¶
Click to show internal directories.
Click to hide internal directories.