Versions in this module Expand all Collapse all v0 v0.0.25 Nov 27, 2019 Changes in this version + type DBTaxonomyMeta struct + MetaID uint64 + MetaKey string + MetaValue string + TermTaxonomyID uint64 + func (DBTaxonomyMeta) SelectField() []string v0.0.24 Nov 20, 2019 v0.0.23 Nov 11, 2019 v0.0.22 Nov 7, 2019 Changes in this version + func ExecSql(tx *sql.Tx, builder interface{}) (sql.Result, error) + type DBOrderGoods struct + OrderID uint64 + RecID uint64 + type DBOrderInfo struct + GoodsAmount float64 + Mobile string + OrderID uint64 + OrderSN string type Taxonomy + SubTaxonomy *[]Taxonomy + TaxonomyMeta *[]TaxonomyMeta + type TaxonomyMeta struct + MetaID uint64 + MetaKey string + MetaValue string + TermTaxonomyID uint64 v0.0.21 Sep 17, 2019 v0.0.20 Sep 17, 2019 Changes in this version + var Create create + var CreateSQLPath = "./data/sql" + var DB *sql.DB + var DB8 *sql.DB + var DBX *sqlx.DB + var ErrEmptyResult = scanner.ErrEmptyResult + var GDB *gorm.DB + var Insert insert + var Null null + func AppendMap(a gin.H, b gin.H) gin.H + func BatchUpdate(arr []DBBookTaxonomy) error + func EditCategory(termID uint64, name string, slug string, description string, parent uint64) error + func GetDBPostmetas(postID uint64) (map[string]DBPostmeta, error) + func GetOption(name string) string + func GetStructFieldTag(i interface{}, tagName string) (tableField []string) + func InsertMenu(name string, slug string, description string) error + func InsertMenuItem(postTitle string, url string, termTaxonomyID uint64) error + func InsterCategory(name string, parent uint64, slug string, description string) error + func Register() + func SetOption(name string, value string, autoload string) error + func UpdateMenuTree(tree []Tree, parent uint64, i int) (int, error) + func UseSchema(schema string) + func WriteLogToDB(desc string, requestID string, logType LogsLogType) + type BaseTplData struct + BlogDescription string + BlogKeywords string + BlogName string + type BookTaxonomyLevel int + const BookTaxonomyLevelFifth + const BookTaxonomyLevelFirst + const BookTaxonomyLevelFourth + const BookTaxonomyLevelSecond + const BookTaxonomyLevelThird + type CardState string + const CardStateClose + const CardStateOpen + func (c CardState) String() string + type Category struct + Count int64 + Description string + ID uint64 + Name string + Order int + Parent uint64 + Slug string + SubCategorys []*Category + Taxonomy string + func GetAllCategory(cats []*Category, parent uint64) ([]*Category, error) + func GetCategoryByTermID(termID uint64) (*Category, error) + func GetCategorys() (ret []*Category, err error) + type Comment struct + CommentAgent string + CommentApproved string + CommentAuthor string + CommentAuthorEmail string + CommentAuthorIP string + CommentAuthorURL string + CommentContent string + CommentDate time.Time + CommentDateGMT time.Time + CommentID uint64 + CommentKarma int + CommentParent uint64 + CommentPostID uint64 + CommentType string + UserID uint64 + type DBBook struct + BookID uint64 + Date time.Time + DateLastActivity time.Time + Desc string + Name string + ShortLink string + State CardState + UserID uint64 + func (DBBook) SelectField() []string + type DBBookTaxonomy struct + BookID uint64 + CardID uint64 + CardOrder uint64 + IsLeaf bool + Level int + ParentCardID uint64 + func TreeToDBStruct(bookID uint64, order *int, parentCardID uint64, t []Tree, ...) []DBBookTaxonomy + type DBCard struct + CardID uint64 + Date time.Time + DateLastActivity time.Time + Desc string + InBook bool + Name string + ShortLink string + State CardState + UserID uint64 + func (DBCard) SelectField() []string + type DBCoupon struct + Code string + CouponID uint64 + Date time.Time + DateLastActivity time.Time + Desc string + Excerpt string + Exp time.Time + Img string + Maximum int + Nbf time.Time + State int + Title string + UID uint64 + Used int + func (DBCoupon) SelectField() []string + type DBCouponLog struct + Code string + CouponLogID uint64 + Date time.Time + DateLastActivity time.Time + Desc string + Excerpt string + Exp time.Time + Img string + Maximum int + Nbf time.Time + Title string + UID uint64 + Used int + type DBCreditLog struct + Date time.Time + Extcredits1 int + Extcredits2 int + Extcredits3 int + Extcredits4 int + Extcredits5 int + Extcredits6 int + Extcredits7 int + Extcredits8 int + LogID uint64 + Operation string + Reason string + RelatedID uint64 + UserID uint64 + func (DBCreditLog) SelectField() []string + type DBGoods struct + GoodsCategoryID uint64 + GoodsContent string + GoodsDate time.Time + GoodsExcerpt string + GoodsExt string + GoodsID uint64 + GoodsImg string + GoodsModified time.Time + GoodsName string + GoodsOrder uint64 + GoodsPrice float64 + GoodsStatus string + GoodsUID uint64 + type DBLogs struct + CreatTime time.Time + Desc string + LogID uint64 + LogType string + RequestID string + type DBPost struct + CommentCount int64 + CommentStatus string + Comments []*Comment + GUID string + ID uint64 + MenuOrder int + PingStatus string + Pinged string + PostAuthor uint64 + PostContent string + PostContentFiltered string + PostDate time.Time + PostDateGmt time.Time + PostExcerpt string + PostMimeType string + PostModified time.Time + PostModifiedGmt time.Time + PostName string + PostParent uint64 + PostPassword string + PostStatus string + PostTitle string + PostType string + Postmetas []*wpsapi.Postmetum + Tags []*Tag + TermRelationships []*DBTermRelationship + ToPing string + func GetDBPost(id uint64) (*DBPost, error) + func (DBPost) SelectField() []string + func (DBPost) TableName() string + type DBPostmeta struct + MetaID uint + MetaKey string + MetaValue string + PostID int + type DBTerm struct + Name string + Slug string + TermGroup int64 + TermID uint64 + TermTaxonomy *DBTermTaxonomy + func GetDBTerm(termID uint64) (*DBTerm, error) + func (DBTerm) TableName() string + type DBTermRelationship struct + ObjectID uint64 + TermOrder int + TermTaxonomyID uint64 + func GetDBTermRelationships(termTaxonomyID uint64) (*DBTermRelationship, error) + func (DBTermRelationship) TableName() string + type DBTermTaxonomy struct + Count int64 + Description string + Parent uint64 + Taxonomy string + TermID uint64 + TermTaxonomyID uint64 + func GetDBTermTaxonomy(termID uint64) (*DBTermTaxonomy, error) + func (DBTermTaxonomy) TableName() string + type DBUsermeta struct + MetaKey string + MetaValue string + UmetaID uint64 + UserID uint64 + func (DBUsermeta) SelectField() []string + type DBUsers struct + Credits int64 + Deleted int + DisplayName string + ID uint64 + Number string + Openid string + Sex int + UserActivationKey string + UserEmail string + UserLogin string + UserNicename string + UserPass string + UserPhone string + UserRegistered time.Time + UserStatus UserStatus + UserURL string + WechatHeadImgURL string + func (DBUsers) SelectField() []string + type Label struct + Description string + ID uint64 + Name string + Slug string + Taxonomy string + func (Label) TableName() string + type LogsLogType string + const LogsLogTypeModel + const LogsLogTypeNormalize + const LogsLogTypeRouter + func (l LogsLogType) String() string + type NavMenu struct + Count int64 + Description string + Name string + Slug string + SubMenus SubMenus + TermID uint64 + func GetMenus() ([]*NavMenu, error) + func GetNavMenuByTermID(termID uint64) (*NavMenu, error) + type OptionNamePrefix string + const WechatOption + func (p OptionNamePrefix) String() string + type Post struct + Author uint64 + Categorys []*Category + CommentCount int64 + CommentStatus string + Content string + Date time.Time + DateGmt time.Time + Excerpt string + ID uint64 + IsTOP bool + Labels []*Label + Modified time.Time + ModifiedGmt time.Time + Name string + Parent uint64 + Password string + Postmetas []*DBPostmeta + Status string + Thumbnail string + Title string + Type string + type SubMenu struct + ID uint64 + MenuOrder int + Parent int64 + PostTitle string + SubMenus []*SubMenu + URL string + type SubMenus []*SubMenu + func (sm SubMenus) Len() int + func (sm SubMenus) Less(i, j int) bool + func (sm SubMenus) Swap(i, j int) + type Tag struct + Count int64 + Name string + Parent int64 + TermID int64 + type Taxonomy struct + Count int64 + Name string + Order int + Parent uint64 + Taxonomy string + TermID uint64 + TermTaxonomyID uint64 + type TermRelationship struct + ObjectID uint64 + Term *wpsapi.Term + TermOrder int + TermTaxonomyID uint64 + type Tree struct + Children []Tree + ID uint64 + type UserStatus int + const UserStatusSystemRegister + const UserStatusWechatFollow + const UserStatusWechatRegister