Versions in this module Expand all Collapse all v1 v1.3.5 Jan 30, 2020 v1.3.4 Jan 21, 2020 v1.3.3 Jan 21, 2020 Changes in this version type Goods + func (obj *Goods) SetCreated(created time.Time) + func (obj *Goods) SetID(iD int) + func (obj *Goods) SetName(name string) + func (obj *Goods) SetPrice(price int) + func (obj *Goods) SetStock(stock int) + func (obj *Goods) SetUpdated(updated time.Time) + func (obj *Goods) Updates(rep freedom.GORMRepository) (affected int64, e error) type Order + func (obj *Order) SetCreated(created time.Time) + func (obj *Order) SetGoodsID(goodsID int) + func (obj *Order) SetID(iD int) + func (obj *Order) SetNum(num int) + func (obj *Order) SetUpdated(updated time.Time) + func (obj *Order) SetUserID(userID int) + func (obj *Order) Updates(rep freedom.GORMRepository) (affected int64, e error) v1.3.2 Jan 20, 2020 Changes in this version + func CreateGoods(rep freedom.GORMRepository, entity *Goods) (rowsAffected int64, e error) + func CreateOrder(rep freedom.GORMRepository, entity *Order) (rowsAffected int64, e error) + func FindByWhereToUpdateGoodss(rep freedom.GORMRepository, query string, args []interface{}, value Goods, ...) (affected int64, e error) + func FindByWhereToUpdateOrders(rep freedom.GORMRepository, query string, args []interface{}, value Order, ...) (affected int64, e error) + func FindToUpdateGoodss(rep freedom.GORMRepository, query Goods, value Goods, ...) (affected int64, e error) + func FindToUpdateOrders(rep freedom.GORMRepository, query Order, value Order, ...) (affected int64, e error) + func UpdateGoods(rep freedom.GORMRepository, query *Goods, value Goods) (affected int64, e error) + func UpdateOrder(rep freedom.GORMRepository, query *Order, value Order) (affected int64, e error) + type Goods struct + Created time.Time + ID int + Name string + Price int + Stock int + Updated time.Time + func FindGoods(rep freedom.GORMRepository, query Goods, builders ...freedom.QueryBuilder) (result Goods, e error) + func FindGoodsByPrimary(rep freedom.GORMRepository, primary interface{}) (result Goods, e error) + func FindGoodsByWhere(rep freedom.GORMRepository, query string, args []interface{}, ...) (result Goods, e error) + func FindGoodss(rep freedom.GORMRepository, query Goods, builders ...freedom.QueryBuilder) (results []Goods, e error) + func FindGoodssByPrimarys(rep freedom.GORMRepository, primarys ...interface{}) (results []Goods, e error) + func FindGoodssByWhere(rep freedom.GORMRepository, query string, args []interface{}, ...) (results []Goods, e error) + func (m *Goods) TableName() string + type GoodsRep struct + ID int + Name string + Price int + Stock int + type Order struct + Created time.Time + GoodsID int + ID int + Num int + Updated time.Time + UserID int + func FindOrder(rep freedom.GORMRepository, query Order, builders ...freedom.QueryBuilder) (result Order, e error) + func FindOrderByPrimary(rep freedom.GORMRepository, primary interface{}) (result Order, e error) + func FindOrderByWhere(rep freedom.GORMRepository, query string, args []interface{}, ...) (result Order, e error) + func FindOrders(rep freedom.GORMRepository, query Order, builders ...freedom.QueryBuilder) (results []Order, e error) + func FindOrdersByPrimarys(rep freedom.GORMRepository, primarys ...interface{}) (results []Order, e error) + func FindOrdersByWhere(rep freedom.GORMRepository, query string, args []interface{}, ...) (results []Order, e error) + func (m *Order) TableName() string + type OrderRep struct + DateTime string + GoodsID int + GoodsName string + ID int + Num int