Documentation ¶
Overview ¶
判断package是否加载过
Index ¶
- Constants
- type SgBlogTags
- type SgBlogTagsModel
- func (m *SgBlogTagsModel) Count() (count int64, err error)
- func (m *SgBlogTagsModel) Create(value *SgBlogTags) (lastId int64, err error)
- func (m *SgBlogTagsModel) Find(value *SgBlogTags) (resList []*SgBlogTags, err error)
- func (m *SgBlogTagsModel) First(value *SgBlogTags) (result *SgBlogTags, err error)
- func (m *SgBlogTagsModel) Last(value *SgBlogTags) (result *SgBlogTags, err error)
- func (m *SgBlogTagsModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
- func (m *SgBlogTagsModel) Update(value *SgBlogTags) (b bool, err error)
- type SgBlogTagsNull
- type SgBlogs
- type SgBlogsModel
- func (m *SgBlogsModel) Count() (count int64, err error)
- func (m *SgBlogsModel) Create(value *SgBlogs) (lastId int64, err error)
- func (m *SgBlogsModel) Find(value *SgBlogs) (resList []*SgBlogs, err error)
- func (m *SgBlogsModel) First(value *SgBlogs) (result *SgBlogs, err error)
- func (m *SgBlogsModel) Last(value *SgBlogs) (result *SgBlogs, err error)
- func (m *SgBlogsModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
- func (m *SgBlogsModel) Update(value *SgBlogs) (b bool, err error)
- type SgBlogsNull
- type SgConfigs
- type SgConfigsModel
- func (m *SgConfigsModel) Count() (count int64, err error)
- func (m *SgConfigsModel) Create(value *SgConfigs) (lastId int64, err error)
- func (m *SgConfigsModel) Find(value *SgConfigs) (resList []*SgConfigs, err error)
- func (m *SgConfigsModel) First(value *SgConfigs) (result *SgConfigs, err error)
- func (m *SgConfigsModel) Last(value *SgConfigs) (result *SgConfigs, err error)
- func (m *SgConfigsModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
- func (m *SgConfigsModel) Update(value *SgConfigs) (b bool, err error)
- type SgConfigsNull
- type SgMigrations
- type SgMigrationsModel
- func (m *SgMigrationsModel) Count() (count int64, err error)
- func (m *SgMigrationsModel) Create(value *SgMigrations) (lastId int64, err error)
- func (m *SgMigrationsModel) Find(value *SgMigrations) (resList []*SgMigrations, err error)
- func (m *SgMigrationsModel) First(value *SgMigrations) (result *SgMigrations, err error)
- func (m *SgMigrationsModel) Last(value *SgMigrations) (result *SgMigrations, err error)
- func (m *SgMigrationsModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
- func (m *SgMigrationsModel) Update(value *SgMigrations) (b bool, err error)
- type SgMigrationsNull
- type SgTags
- type SgTagsModel
- func (m *SgTagsModel) Count() (count int64, err error)
- func (m *SgTagsModel) Create(value *SgTags) (lastId int64, err error)
- func (m *SgTagsModel) Find(value *SgTags) (resList []*SgTags, err error)
- func (m *SgTagsModel) First(value *SgTags) (result *SgTags, err error)
- func (m *SgTagsModel) Last(value *SgTags) (result *SgTags, err error)
- func (m *SgTagsModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
- func (m *SgTagsModel) Update(value *SgTags) (b bool, err error)
- type SgTagsNull
- type SgUsers
- type SgUsersModel
- func (m *SgUsersModel) Count() (count int64, err error)
- func (m *SgUsersModel) Create(value *SgUsers) (lastId int64, err error)
- func (m *SgUsersModel) Find(value *SgUsers) (resList []*SgUsers, err error)
- func (m *SgUsersModel) First(value *SgUsers) (result *SgUsers, err error)
- func (m *SgUsersModel) Last(value *SgUsers) (result *SgUsers, err error)
- func (m *SgUsersModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
- func (m *SgUsersModel) Update(value *SgUsers) (b bool, err error)
- type SgUsersNull
Constants ¶
View Source
const ( TABLE_SG_BLOG_TAGS = "sg_blog_tags" // TABLE_SG_BLOGS = "sg_blogs" // TABLE_SG_CONFIGS = "sg_configs" // TABLE_SG_MIGRATIONS = "sg_migrations" // TABLE_SG_TAGS = "sg_tags" // TABLE_SG_USERS = "sg_users" // )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SgBlogTags ¶
type SgBlogTagsModel ¶
func NewSgBlogTags ¶
func NewSgBlogTags(db *sql.DB) *SgBlogTagsModel
func (*SgBlogTagsModel) Create ¶
func (m *SgBlogTagsModel) Create(value *SgBlogTags) (lastId int64, err error)
新增信息
func (*SgBlogTagsModel) Find ¶
func (m *SgBlogTagsModel) Find(value *SgBlogTags) (resList []*SgBlogTags, err error)
查询多行数据
func (*SgBlogTagsModel) First ¶
func (m *SgBlogTagsModel) First(value *SgBlogTags) (result *SgBlogTags, err error)
获取单行数据
func (*SgBlogTagsModel) Last ¶
func (m *SgBlogTagsModel) Last(value *SgBlogTags) (result *SgBlogTags, err error)
获取单行数据
func (*SgBlogTagsModel) Save ¶
func (m *SgBlogTagsModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
_更新数据
func (*SgBlogTagsModel) Update ¶
func (m *SgBlogTagsModel) Update(value *SgBlogTags) (b bool, err error)
更新数据
type SgBlogTagsNull ¶
type SgBlogsModel ¶
func NewSgBlogs ¶
func NewSgBlogs(db *sql.DB) *SgBlogsModel
func (*SgBlogsModel) Create ¶
func (m *SgBlogsModel) Create(value *SgBlogs) (lastId int64, err error)
新增信息
func (*SgBlogsModel) Find ¶
func (m *SgBlogsModel) Find(value *SgBlogs) (resList []*SgBlogs, err error)
查询多行数据
func (*SgBlogsModel) First ¶
func (m *SgBlogsModel) First(value *SgBlogs) (result *SgBlogs, err error)
获取单行数据
func (*SgBlogsModel) Last ¶
func (m *SgBlogsModel) Last(value *SgBlogs) (result *SgBlogs, err error)
获取单行数据
type SgBlogsNull ¶
type SgBlogsNull struct { Id sql.NullInt64 UserId sql.NullInt64 //用户ID,与users表相关 Title sql.NullString //标题 Content sql.NullString Type sql.NullInt64 //文章类型,1为原创,2为转载 IsPush sql.NullInt64 //是否推送,0未,1是 Status sql.NullInt64 //文章状态:1发布,2草稿 FirstTagId sql.NullInt64 //首标签ID ReadCount sql.NullInt64 //阅读次数 StarCount sql.NullInt64 //点赞次数 CreatedAt sql.NullInt64 //创建时间 UpdatedAt sql.NullInt64 //更新时间 }
type SgConfigsModel ¶
func NewSgConfigs ¶
func NewSgConfigs(db *sql.DB) *SgConfigsModel
func (*SgConfigsModel) Create ¶
func (m *SgConfigsModel) Create(value *SgConfigs) (lastId int64, err error)
新增信息
func (*SgConfigsModel) Find ¶
func (m *SgConfigsModel) Find(value *SgConfigs) (resList []*SgConfigs, err error)
查询多行数据
func (*SgConfigsModel) First ¶
func (m *SgConfigsModel) First(value *SgConfigs) (result *SgConfigs, err error)
获取单行数据
func (*SgConfigsModel) Last ¶
func (m *SgConfigsModel) Last(value *SgConfigs) (result *SgConfigs, err error)
获取单行数据
type SgConfigsNull ¶
type SgConfigsNull struct { Id sql.NullInt64 Name sql.NullString //名称 Key sql.NullString //键 Value sql.NullString //值 ConfigType sql.NullString //变量类型:system 系统内置/user 用户定义 Remark sql.NullString CreatedAt sql.NullInt64 //创建时间 UpdatedAt sql.NullInt64 //更新时间 }
type SgMigrations ¶
type SgMigrationsModel ¶
func NewSgMigrations ¶
func NewSgMigrations(db *sql.DB) *SgMigrationsModel
func (*SgMigrationsModel) Create ¶
func (m *SgMigrationsModel) Create(value *SgMigrations) (lastId int64, err error)
新增信息
func (*SgMigrationsModel) Find ¶
func (m *SgMigrationsModel) Find(value *SgMigrations) (resList []*SgMigrations, err error)
查询多行数据
func (*SgMigrationsModel) First ¶
func (m *SgMigrationsModel) First(value *SgMigrations) (result *SgMigrations, err error)
获取单行数据
func (*SgMigrationsModel) Last ¶
func (m *SgMigrationsModel) Last(value *SgMigrations) (result *SgMigrations, err error)
获取单行数据
func (*SgMigrationsModel) Save ¶
func (m *SgMigrationsModel) Save(sqlTxt string, value ...interface{}) (b bool, err error)
_更新数据
func (*SgMigrationsModel) Update ¶
func (m *SgMigrationsModel) Update(value *SgMigrations) (b bool, err error)
更新数据
type SgMigrationsNull ¶
type SgTagsModel ¶
func NewSgTags ¶
func NewSgTags(db *sql.DB) *SgTagsModel
func (*SgTagsModel) Create ¶
func (m *SgTagsModel) Create(value *SgTags) (lastId int64, err error)
新增信息
func (*SgTagsModel) Find ¶
func (m *SgTagsModel) Find(value *SgTags) (resList []*SgTags, err error)
查询多行数据
func (*SgTagsModel) First ¶
func (m *SgTagsModel) First(value *SgTags) (result *SgTags, err error)
获取单行数据
func (*SgTagsModel) Last ¶
func (m *SgTagsModel) Last(value *SgTags) (result *SgTags, err error)
获取单行数据
type SgTagsNull ¶
type SgTagsNull struct { Id sql.NullInt64 Name sql.NullString //名称 Remark sql.NullString //备注 CreatedAt sql.NullInt64 //创建时间 UpdatedAt sql.NullInt64 //更新时间 }
type SgUsersModel ¶
func NewSgUsers ¶
func NewSgUsers(db *sql.DB) *SgUsersModel
func (*SgUsersModel) Create ¶
func (m *SgUsersModel) Create(value *SgUsers) (lastId int64, err error)
新增信息
func (*SgUsersModel) Find ¶
func (m *SgUsersModel) Find(value *SgUsers) (resList []*SgUsers, err error)
查询多行数据
func (*SgUsersModel) First ¶
func (m *SgUsersModel) First(value *SgUsers) (result *SgUsers, err error)
获取单行数据
func (*SgUsersModel) Last ¶
func (m *SgUsersModel) Last(value *SgUsers) (result *SgUsers, err error)
获取单行数据
type SgUsersNull ¶
type SgUsersNull struct { Id sql.NullInt64 Name sql.NullString //用户名 Pass sql.NullString //密码 Salt sql.NullString //盐 Google2faKey sql.NullString //谷歌两步验证密钥 LoginCount sql.NullInt64 //登陆次数 Token sql.NullString //记住密码生成的随机数 LoginIp sql.NullString //登陆IP CreatedAt sql.NullInt64 //创建时间 UpdatedAt sql.NullInt64 //更新时间 }
Click to show internal directories.
Click to hide internal directories.