Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTagRoutes ¶
func RegisterTagRoutes(r *gin.RouterGroup, db *sqlx.DB)
Types ¶
type ChannelTagsRequest ¶ added in v0.16.2
type NodeTagsRequest ¶ added in v0.16.2
type NodeTagsRequest struct {
NodeId int `db:"node_id"`
}
type Tag ¶ added in v0.10.0
type Tag struct { TagId int `json:"tagId" db:"tag_id"` Name string `json:"name" db:"name"` Style string `json:"style" db:"style"` CategoryId *int `json:"categoryId" db:"category_id"` CategoryName *string `json:"categoryName" db:"category_name"` CategoryStyle *string `json:"categoryStyle" db:"category_style"` CreatedOn time.Time `json:"createdOn" db:"created_on"` UpdateOn time.Time `json:"updatedOn" db:"updated_on"` }
func GetChannelTags ¶ added in v0.16.2
func GetChannelTags(db *sqlx.DB, req ChannelTagsRequest) ([]Tag, error)
GetChannelTags gets the tags for a channel, if both the channel id and node id is set it will also return the tags for the node
type TagEntityRequest ¶ added in v0.16.2
type TagResponse ¶ added in v0.16.2
type TagResponse struct { Tag Channels []TaggedChannels `json:"channels"` Nodes []TaggedNodes `json:"nodes"` }
func GetTagsByCategoryId ¶ added in v0.12.0
func GetTagsByCategoryId(db *sqlx.DB, categoryId int) ([]TagResponse, error)
type TaggedChannels ¶ added in v0.16.2
type TaggedNodes ¶ added in v0.16.2
Click to show internal directories.
Click to hide internal directories.