Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
DB 全局的DB
View Source
var PurchaseInfoDao = &PurchaseInfoDAO{
tableName: "purchase_info",
cloumes: "id, user, company, tel, purchase_num, purchase_time, created_time, updated_time",
}
Functions ¶
Types ¶
type PurchaseInfo ¶
type PurchaseInfo struct { ID int User string Company string Tel string PurchaseNum int PurchaseTime string CreatedTime string UpdatedTime string }
PurchaseInfo 记录采购信息
type PurchaseInfoDAO ¶
type PurchaseInfoDAO struct {
// contains filtered or unexported fields
}
func (*PurchaseInfoDAO) Add ¶
func (p *PurchaseInfoDAO) Add(r *PurchaseInfo) (err error)
func (*PurchaseInfoDAO) Count ¶
func (p *PurchaseInfoDAO) Count() (total int64, err error)
func (*PurchaseInfoDAO) Get ¶
func (p *PurchaseInfoDAO) Get(start, limit uint64) (res []*PurchaseInfo, err error)
func (*PurchaseInfoDAO) GetAll ¶
func (p *PurchaseInfoDAO) GetAll(start, limit int64) (res []*PurchaseInfo, err error)
Click to show internal directories.
Click to hide internal directories.