parent
fd178a7c9e
commit
82af63a5f4
@ -1,10 +1,10 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"DbType":"mssql",
|
"DbType":"mysql",
|
||||||
"IsMaster":true,
|
"IsMaster":true,
|
||||||
"Dsn":"server=172.0.0.8;user id=sa;password=Password1!;database=DIGITAL",
|
"Dsn":"server=127.0.0.1;user id=root;password=root;database=fushouxian",
|
||||||
"sqlMaxIdleConns":1,
|
"sqlMaxIdleConns":1,
|
||||||
"sqlMaxOpenConns":1,
|
"sqlMaxOpenConns":1,
|
||||||
"sqlLogLevel":2
|
"sqlLogLevel":2
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1 +1,21 @@
|
|||||||
package category
|
package category
|
||||||
|
|
||||||
|
import (
|
||||||
|
"gitlab.fanhaninfo.net/go/togo/dao/basedboperat"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (Category) TableName() string {
|
||||||
|
return "category"
|
||||||
|
}
|
||||||
|
|
||||||
|
type Category struct {
|
||||||
|
Id int64 `json:"id"`
|
||||||
|
Type int64 `json:"type"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
ParentId int64 `json:"parent_id"`
|
||||||
|
Children []Category `json:"children" xorm:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Category) AfterQuery(session basedboperat.DbTransactionSession) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in new issue