-
Notifications
You must be signed in to change notification settings - Fork 21
/
gen_Blog_struct.go
53 lines (43 loc) · 1.19 KB
/
gen_Blog_struct.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package mysql
import "time"
var _ time.Time
type Blog struct {
BlogId int32 `db:"blog_id"`
Title string `db:"title"`
Hits int32 `db:"hits"`
Slug string `db:"slug"`
Body string `db:"body"`
User int32 `db:"user"`
IsPublished bool `db:"is_published"`
GroupId int64 `db:"group_id"`
Create time.Time `db:"create"`
Update time.Time `db:"update"`
isNew bool
}
const (
BlogMysqlFieldBlogId = "blog_id"
BlogMysqlFieldTitle = "title"
BlogMysqlFieldHits = "hits"
BlogMysqlFieldSlug = "slug"
BlogMysqlFieldBody = "body"
BlogMysqlFieldUser = "user"
BlogMysqlFieldIsPublished = "is_published"
BlogMysqlFieldGroupId = "group_id"
BlogMysqlFieldCreate = "create"
BlogMysqlFieldUpdate = "update"
)
func (p *Blog) GetNameSpace() string {
return "mysql_e2e"
}
func (p *Blog) GetClassName() string {
return "Blog"
}
type _BlogMgr struct {
}
var BlogMgr *_BlogMgr
// Get_BlogMgr returns the orm manager in case of its name starts with lower letter
func Get_BlogMgr() *_BlogMgr { return BlogMgr }
func (m *_BlogMgr) NewBlog() *Blog {
rval := new(Blog)
return rval
}