gfdb

package
v0.0.0-...-2b0d63a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2019 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TableArticle is the table name of gf_article.
	TableArticle = "gf_article"
	// ModelArticle is the model object of gf_article.
	ModelArticle = g.DB("default").Table(TableArticle).Safe()
)
View Source
var (
	// TableAuthRole is the table name of gf_auth_role.
	TableAuthRole = "gf_auth_role"
	// ModelAuthRole is the model object of gf_auth_role.
	ModelAuthRole = g.DB("default").Table(TableAuthRole).Safe()
)
View Source
var (
	// TableAuthRoleRoute is the table name of gf_auth_role_route.
	TableAuthRoleRoute = "gf_auth_role_route"
	// ModelAuthRoleRoute is the model object of gf_auth_role_route.
	ModelAuthRoleRoute = g.DB("default").Table(TableAuthRoleRoute).Safe()
)
View Source
var (
	// TableAuthRoute is the table name of gf_auth_route.
	TableAuthRoute = "gf_auth_route"
	// ModelAuthRoute is the model object of gf_auth_route.
	ModelAuthRoute = g.DB("default").Table(TableAuthRoute).Safe()
)
View Source
var (
	// TableBlog is the table name of gf_blog.
	TableBlog = "gf_blog"
	// ModelBlog is the model object of gf_blog.
	ModelBlog = g.DB("default").Table(TableBlog).Safe()
)
View Source
var (
	// TableCategory is the table name of gf_category.
	TableCategory = "gf_category"
	// ModelCategory is the model object of gf_category.
	ModelCategory = g.DB("default").Table(TableCategory).Safe()
)
View Source
var (
	// TableQuestion is the table name of gf_question.
	TableQuestion = "gf_question"
	// ModelQuestion is the model object of gf_question.
	ModelQuestion = g.DB("default").Table(TableQuestion).Safe()
)
View Source
var (
	// TableReply is the table name of gf_reply.
	TableReply = "gf_reply"
	// ModelReply is the model object of gf_reply.
	ModelReply = g.DB("default").Table(TableReply).Safe()
)
View Source
var (
	// TableSetting is the table name of gf_setting.
	TableSetting = "gf_setting"
	// ModelSetting is the model object of gf_setting.
	ModelSetting = g.DB("default").Table(TableSetting).Safe()
)
View Source
var (
	// TableTopic is the table name of gf_topic.
	TableTopic = "gf_topic"
	// ModelTopic is the model object of gf_topic.
	ModelTopic = g.DB("default").Table(TableTopic).Safe()
)
View Source
var (
	// TableUser is the table name of gf_user.
	TableUser = "gf_user"
	// ModelUser is the model object of gf_user.
	ModelUser = g.DB("default").Table(TableUser).Safe()
)
View Source
var (
	// TableUserDetail is the table name of gf_user_detail.
	TableUserDetail = "gf_user_detail"
	// ModelUserDetail is the model object of gf_user_detail.
	ModelUserDetail = g.DB("default").Table(TableUserDetail).Safe()
)
View Source
var (
	// TableUserLogin is the table name of gf_user_login.
	TableUserLogin = "gf_user_login"
	// ModelUserLogin is the model object of gf_user_login.
	ModelUserLogin = g.DB("default").Table(TableUserLogin).Safe()
)
View Source
var (
	// TableUserStat is the table name of gf_user_stat.
	TableUserStat = "gf_user_stat"
	// ModelUserStat is the model object of gf_user_stat.
	ModelUserStat = g.DB("default").Table(TableUserStat).Safe()
)

Functions

This section is empty.

Types

type Article

type Article struct {
	Id         int         `orm:"id,primary"  json:"id"`
	CatId      int         `orm:"cat_id"      json:"cat_id"`
	Uid        int         `orm:"uid"         json:"uid"`
	Title      string      `orm:"title"       json:"title"`
	Content    string      `orm:"content"     json:"content"`
	Order      int         `orm:"order"       json:"order"`
	Brief      string      `orm:"brief"       json:"brief"`
	Thumb      string      `orm:"thumb"       json:"thumb"`
	Tags       string      `orm:"tags"        json:"tags"`
	Referer    string      `orm:"referer"     json:"referer"`
	Status     int         `orm:"status"      json:"status"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
	UpdateTime *gtime.Time `orm:"update_time" json:"update_time"`
}

Article is the golang structure for table gf_article.

type AuthRole

type AuthRole struct {
	Id         int         `orm:"id,primary"  json:"id"`
	Name       string      `orm:"name"        json:"name"`
	RoleKey    string      `orm:"role_key"    json:"role_key"`
	Order      int         `orm:"order"       json:"order"`
	Brief      string      `orm:"brief"       json:"brief"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
}

AuthRole is the golang structure for table gf_auth_role.

type AuthRoleRoute

type AuthRoleRoute struct {
	Id    int    `orm:"id,primary" json:"id"`
	Rid   int    `orm:"rid"        json:"rid"`
	Key   string `orm:"key"        json:"key"`
	Value string `orm:"value"      json:"value"`
	Brief string `orm:"brief"      json:"brief"`
}

AuthRoleRoute is the golang structure for table gf_auth_role_route.

type AuthRoute

type AuthRoute struct {
	Id     int    `orm:"id,primary" json:"id"`
	Method string `orm:"method"     json:"method"`
	Route  string `orm:"route"      json:"route"`
	Name   string `orm:"name"       json:"name"`
	Brief  string `orm:"brief"      json:"brief"`
}

AuthRoute is the golang structure for table gf_auth_route.

type Blog

type Blog struct {
	Id         int         `orm:"id,primary"  json:"id"`
	CatId      int         `orm:"cat_id"      json:"cat_id"`
	Uid        int         `orm:"uid"         json:"uid"`
	Title      string      `orm:"title"       json:"title"`
	Content    string      `orm:"content"     json:"content"`
	Order      int         `orm:"order"       json:"order"`
	Brief      string      `orm:"brief"       json:"brief"`
	Thumb      string      `orm:"thumb"       json:"thumb"`
	Tags       string      `orm:"tags"        json:"tags"`
	Referer    string      `orm:"referer"     json:"referer"`
	Status     int         `orm:"status"      json:"status"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
	UpdateTime *gtime.Time `orm:"update_time" json:"update_time"`
}

Blog is the golang structure for table gf_blog.

type Category

type Category struct {
	Id         int         `orm:"id,primary"  json:"id"`
	Pid        int         `orm:"pid"         json:"pid"`
	Type       string      `orm:"type"        json:"type"`
	Uid        int         `orm:"uid"         json:"uid"`
	Name       string      `orm:"name"        json:"name"`
	Order      int         `orm:"order"       json:"order"`
	Thumb      string      `orm:"thumb"       json:"thumb"`
	Brief      string      `orm:"brief"       json:"brief"`
	Content    string      `orm:"content"     json:"content"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
	UpdateTime *gtime.Time `orm:"update_time" json:"update_time"`
}

Category is the golang structure for table gf_category.

type Question

type Question struct {
	Id         int         `orm:"id,primary"  json:"id"`
	CatId      int         `orm:"cat_id"      json:"cat_id"`
	Uid        int         `orm:"uid"         json:"uid"`
	AdoptId    int         `orm:"adopt_id"    json:"adopt_id"`
	Title      string      `orm:"title"       json:"title"`
	Content    string      `orm:"content"     json:"content"`
	Order      int         `orm:"order"       json:"order"`
	Brief      string      `orm:"brief"       json:"brief"`
	Thumb      string      `orm:"thumb"       json:"thumb"`
	Tags       string      `orm:"tags"        json:"tags"`
	Referer    string      `orm:"referer"     json:"referer"`
	Status     int         `orm:"status"      json:"status"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
	UpdateTime *gtime.Time `orm:"update_time" json:"update_time"`
}

Question is the golang structure for table gf_question.

type Reply

type Reply struct {
	Id         int         `orm:"id,primary"  json:"id"`
	Pid        int         `orm:"pid"         json:"pid"`
	Type       int         `orm:"type"        json:"type"`
	Tid        int         `orm:"tid"         json:"tid"`
	Uid        int         `orm:"uid"         json:"uid"`
	Cai        int         `orm:"cai"         json:"cai"`
	Zan        int         `orm:"zan"         json:"zan"`
	Title      string      `orm:"title"       json:"title"`
	Content    string      `orm:"content"     json:"content"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
}

Reply is the golang structure for table gf_reply.

type Setting

type Setting struct {
	K          string      `orm:"k,primary"   json:"k"`
	V          string      `orm:"v"           json:"v"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
	UpdateTime *gtime.Time `orm:"update_time" json:"update_time"`
}

Setting is the golang structure for table gf_setting.

type Topic

type Topic struct {
	Id         int    `orm:"id,primary"  json:"id"`
	CatId      int    `orm:"cat_id"      json:"cat_id"`
	Uid        int    `orm:"uid"         json:"uid"`
	Title      string `orm:"title"       json:"title"`
	Content    string `orm:"content"     json:"content"`
	Order      int    `orm:"order"       json:"order"`
	Brief      string `orm:"brief"       json:"brief"`
	Thumb      string `orm:"thumb"       json:"thumb"`
	Tags       string `orm:"tags"        json:"tags"`
	Referer    string `orm:"referer"     json:"referer"`
	Status     int    `orm:"status"      json:"status"`
	CreateTime int    `orm:"create_time" json:"create_time"`
	UpdateTime int    `orm:"update_time" json:"update_time"`
}

Topic is the golang structure for table gf_topic.

type User

type User struct {
	Id         int         `orm:"id,primary"  json:"id"`
	Rid        int         `orm:"rid"         json:"rid"`
	Passport   string      `orm:"passport"    json:"passport"`
	Password   string      `orm:"password"    json:"password"`
	Nickname   string      `orm:"nickname"    json:"nickname"`
	Avatar     string      `orm:"avatar"      json:"avatar"`
	Status     int         `orm:"status"      json:"status"`
	Gender     int         `orm:"gender"      json:"gender"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
	UpdateTime *gtime.Time `orm:"update_time" json:"update_time"`
}

User is the golang structure for table gf_user.

type UserDetail

type UserDetail struct {
	Uid      int         `orm:"uid,primary" json:"uid"`
	TrueName string      `orm:"true_name"   json:"true_name"`
	IdNumber string      `orm:"id_number"   json:"id_number"`
	City     string      `orm:"city"        json:"city"`
	Birth    *gtime.Time `orm:"birth"       json:"birth"`
	Phone    string      `orm:"phone"       json:"phone"`
	Qq       string      `orm:"qq"          json:"qq"`
	Email    string      `orm:"email"       json:"email"`
	From     string      `orm:"from"        json:"from"`
	Brief    string      `orm:"brief"       json:"brief"`
}

UserDetail is the golang structure for table gf_user_detail.

type UserLogin

type UserLogin struct {
	Id         int         `orm:"id,primary"  json:"id"`
	Uid        int         `orm:"uid"         json:"uid"`
	Ip         string      `orm:"ip"          json:"ip"`
	Result     int         `orm:"result"      json:"result"`
	CreateTime *gtime.Time `orm:"create_time" json:"create_time"`
}

UserLogin is the golang structure for table gf_user_login.

type UserStat

type UserStat struct {
	Uid int `orm:"uid,primary" json:"uid"`
	Zan int `orm:"zan"         json:"zan"`
	Cai int `orm:"cai"         json:"cai"`
}

UserStat is the golang structure for table gf_user_stat.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL