Versions in this module Expand all Collapse all v1 v1.0.4 Jan 2, 2021 v1.0.3 Nov 18, 2020 Changes in this version + type ContentConfig struct + CustomerService sqltype.CustomerServiceList + EnableHTMLCache bool + FocusPicture sqltype.FocusPictureList + Logo string + Name string + OID uint64 + SocialAccount sqltype.SocialAccountList + func (ContentConfig) TableName() string type Organization + Email string v1.0.2 Oct 25, 2020 v1.0.1 Oct 25, 2020 Changes in this version + func Orm() *gorm.DB + func Paging(db *gorm.DB, pageIndex, pageSize int, dataType IDataBaseFace) result.Pager + type Address struct + CityName string + CountyName string + Detail string + Name string + PostalCode string + ProvinceName string + Tel string + func (addr Address) IsEmpty() bool + type Admin struct + Account string + Authority string + LastLoginAt time.Time + OID uint64 + PassWord string + func (Admin) TableName() string + type AnswerQuestion struct + Content string + Praise uint64 + QuestionID uint64 + UserID uint64 + func (AnswerQuestion) TableName() string + type BaseDao struct + func (b BaseDao) Add(DB *gorm.DB, target interface{}) error + func (b BaseDao) ChangeMap(DB *gorm.DB, ID uint64, model interface{}, params map[string]interface{}) error + func (b BaseDao) ChangeModel(DB *gorm.DB, ID uint64, target interface{}) error + func (b BaseDao) DatatablesListOrder(Orm *gorm.DB, params *Datatables, target interface{}, OID uint64, where string, ...) (draw int, recordsTotal int, recordsFiltered int, list interface{}) + func (b BaseDao) Delete(DB *gorm.DB, target interface{}, ID uint64) error + func (b BaseDao) DeleteWhere(DB *gorm.DB, target interface{}, where interface{}, args ...interface{}) error + func (b BaseDao) FindAll(DB *gorm.DB, target interface{}) error + func (b BaseDao) FindAllByOID(DB *gorm.DB, target interface{}, OID uint64) error + func (b BaseDao) FindOrderWhere(DB *gorm.DB, Order interface{}, target interface{}, where interface{}, ...) error + func (b BaseDao) FindOrderWhereLength(DB *gorm.DB, Order interface{}, target interface{}, Length int) error + func (b BaseDao) FindSelectWherePaging(DB *gorm.DB, Select string, Order interface{}, target IDataBaseFace, ...) result.Pager + func (b BaseDao) FindWhere(DB *gorm.DB, target interface{}, where interface{}, args ...interface{}) error + func (b BaseDao) FindWhereByOID(DB *gorm.DB, target interface{}, OID uint64, where interface{}, ...) error + func (b BaseDao) FindWherePaging(DB *gorm.DB, Order interface{}, target IDataBaseFace, Index int, ...) result.Pager + func (b BaseDao) Get(DB *gorm.DB, ID uint64, target interface{}) error + func (b BaseDao) Save(DB *gorm.DB, target interface{}) error + type BaseModel struct + CreatedAt time.Time + ID uint64 + UpdatedAt time.Time + type CardItem struct + Data string + ExpireTime time.Time + OrderNo string + OrdersGoodsID uint64 + PostType int + Quantity uint + ScoreGoodsID uint64 + Type string + UseQuantity uint + UserID uint64 + VoucherID uint64 + func (CardItem) TableName() string + func (cardItem CardItem) GetNameLabel(DB *gorm.DB) (Name, Label string) + type Collage struct + Discount int + Hash string + Num int + OID uint64 + TotalNum int + func (Collage) TableName() string + func (u *Collage) BeforeCreate(scope *gorm.Scope) (err error) + type CollageGoods struct + CollageHash string + Disable bool + GoodsID uint64 + OID uint64 + func (CollageGoods) TableName() string + type CollageRecord struct + Collager uint64 + No string + OrderNo string + OrdersGoodsNo string + UserID uint64 + func (CollageRecord) TableName() string + type Columns struct + Data string + Name string + Orderable bool + Search Search + Searchable bool + type Configuration struct + K uint64 + OID uint64 + V string + func (Configuration) TableName() string + func (u *Configuration) BeforeCreate(scope *gorm.Scope) (err error) + type Content struct + Author string + Content string + ContentItemID uint64 + ContentSubTypeID uint64 + Description string + FromUrl string + Introduce string + Keywords string + Look int + Picture string + Title string + func (Content) TableName() string + type ContentItem struct + ContentTypeID uint64 + Hide bool + Name string + OID uint64 + Sort int + TemplateName string + Type ContentTypeType + func (ContentItem) TableName() string + type ContentItemContentSubType struct + type ContentSubType struct + ContentItemID uint64 + Name string + ParentContentSubTypeID uint64 + Sort int + func (ContentSubType) TableName() string + type ContentType struct + Label string + Type ContentTypeType + func (ContentType) TableName() string + type ContentTypeType string + const ContentTypeBlog + const ContentTypeContent + const ContentTypeContents + const ContentTypeGallery + const ContentTypeIndex + const ContentTypeProducts + type Custom struct + Name string + Value string + type Datatables struct + Columns []Columns + Customs []Custom + Draw int + Groupbys []string + InIDs []uint64 + Length int + NotIDs []uint64 + Order []Order + Search Search + Start int + type Discount struct + Discount uint64 + Name string + Target string + TypeName string + type District struct + Code string + Name string + func (District) TableName() string + type ExpressTemplate struct + Drawee string + Free string + Name string + OID uint64 + Template string + Type string + func (u *ExpressTemplate) BeforeCreate(scope *gorm.Scope) (err error) + func (u ExpressTemplate) TableName() string + type ExpressTemplateFreeItem struct + Areas []string + M float64 + N int + Type string + func (etfi ExpressTemplateFreeItem) IsFree(et ExpressTemplate, nmw ExpressTemplateNMW) bool + type ExpressTemplateItem struct + AN int + ANM float64 + Areas []string + M float64 + N int + func (etfi ExpressTemplateItem) CalculateExpressPrice(et ExpressTemplate, nmw ExpressTemplateNMW) uint64 + type ExpressTemplateNMW struct + M int + N int + W int + type ExpressTemplateTemplate struct + Default ExpressTemplateItem + Items []ExpressTemplateItem + type FullCut struct + Amount uint64 + CutAmount uint64 + OID uint64 + func (FullCut) TableName() string + func (u *FullCut) BeforeCreate(scope *gorm.Scope) (err error) + type GiveVoucher struct + OID uint64 + ScoreMaxValue uint64 + VoucherID uint64 + func (GiveVoucher) TableName() string + func (u *GiveVoucher) BeforeCreate(scope *gorm.Scope) (err error) + type Goods struct + CountSale uint64 + ExpressTemplateID uint64 + GoodsTypeChildID uint64 + GoodsTypeID uint64 + Hide uint + Images string + Introduce string + Mark string + OID uint64 + Params string + Pictures string + Price uint64 + Stock uint + Summary string + Title string + Videos string + func (u *Goods) BeforeCreate(scope *gorm.Scope) (err error) + func (u Goods) TableName() string + type GoodsInfo struct + Discounts []Discount + Goods Goods + Specifications []Specification + type GoodsParams struct + Name string + Value string + type GoodsReview struct + BuySpecification string + Content string + GoodsID uint64 + Helpful uint64 + NickName string + Portrait string + Star uint64 + func (GoodsReview) TableName() string + type GoodsType struct + Name string + OID uint64 + func (GoodsType) TableName() string + type GoodsTypeChild struct + GoodsTypeID uint64 + Image string + Name string + func (GoodsTypeChild) TableName() string + type GoodsTypeData struct + ID uint64 + List []*GoodsTypeItem + Sub *GoodsTypeItemSub + SubID uint64 + Top *GoodsTypeItem + func (m *GoodsTypeData) Get(ID uint64) *GoodsTypeItem + func (m *GoodsTypeData) SetCurrentMenus(ID, SubID uint64) + type GoodsTypeGoodsTypeChild struct + type GoodsTypeItem struct + Item *GoodsType + SubType []*GoodsTypeItemSub + func (m GoodsTypeItem) Get(ID uint64) *GoodsTypeItemSub + type GoodsTypeItemSub struct + Item *GoodsTypeChild + SubType []*GoodsTypeItemSub + func (m *GoodsTypeItemSub) Get(ID uint64) *GoodsTypeItemSub + type IDataBaseFace interface + TableName func() string + type KV struct + Key string + Value interface{} + type Logger struct + Data string + Key int + OID uint64 + Title string + func (Logger) TableName() string + func (u *Logger) BeforeCreate(scope *gorm.Scope) (err error) + type Manager struct + Account string + PassWord string + func (Manager) TableName() string + type Menus struct + Item ContentItem + SubType []MenusSub + func (m Menus) Get(ID uint64) MenusSub + type MenusData struct + ID uint64 + List []Menus + Sub MenusSub + SubChild MenusSub + SubChildID uint64 + SubID uint64 + Top Menus + func (m *MenusData) SetCurrentMenus(ID, SubID, SubChildID uint64) + func (m MenusData) Get(ID uint64) Menus + type MenusSub struct + Item ContentSubType + SubType []MenusSub + func (m MenusSub) Get(ID uint64) MenusSub + type Order struct + Column int + Dir string + type Orders struct + Address string + DeliverTime time.Time + DiscountMoney uint + ExpressMoney uint + GoodsMoney uint + IsPay uint64 + OID uint64 + OrderNo string + OrdersPackageNo string + PayMoney uint64 + PayTime time.Time + PostType int + PrepayID string + ReceiptTime time.Time + RefundTime time.Time + ShipName string + ShipNo string + Status string + UserID uint64 + func (Orders) TableName() string + func (u *Orders) BeforeCreate(scope *gorm.Scope) (err error) + type OrdersGoods struct + CostPrice uint64 + Discounts string + Error string + Goods string + OID uint64 + OrdersGoodsNo string + OrdersID uint64 + Quantity uint + RefundInfo string + SellPrice uint64 + Specification string + Status string + TotalBrokerage uint64 + func (OrdersGoods) TableName() string + func (og OrdersGoods) AddError(err string) + type OrdersGoodsInfo struct + Discounts []Discount + OrdersGoods OrdersGoods + type OrdersPackage struct + IsPay uint64 + OrderNo string + PrepayID string + TotalPayMoney uint64 + UserID uint64 + func (OrdersPackage) TableName() string + type Organization struct + Address string + Amount uint64 + Avgprice int + BlockAmount uint64 + Categories string + City string + District string + Domain string + Expire time.Time + Introduction string + Latitude string + Link string + Longitude string + Name string + Opentime string + Photos string + Province string + Recommend string + Special string + Telephone string + Vip int + func (Organization) TableName() string + type OrganizationJournal struct + Amount int64 + Balance uint64 + DataKV string + Detail string + Name string + OID uint64 + Type int + func (OrganizationJournal) TableName() string + type Profiling struct + Duration float64 + Query string + QueryID int + type Question struct + Anonymous bool + AnswerReward uint64 + AtLocal bool + Attachment string + Describe string + Expiry time.Time + Follow uint64 + Lat float64 + Link string + Long float64 + QuestionTagID uint64 + ShareReward uint64 + Status string + Title string + UserID uint64 + View uint64 + func (Question) TableName() string + type QuestionTag struct + Introduce string + Name string + func (QuestionTag) TableName() string + type Rank struct + GrowMaxValue uint64 + Title string + func (Rank) TableName() string + type RefundInfo struct + HasGoods bool + Reason string + RefundPrice uint64 + ShipName string + ShipNo string + type ScoreGoods struct + Image string + Introduce string + Name string + OID uint64 + Price uint64 + Score int + func (ScoreGoods) TableName() string + func (u *ScoreGoods) BeforeCreate(scope *gorm.Scope) (err error) + type ScoreJournal struct + Balance uint64 + DataKV string + Detail string + Name string + Score int64 + Type int + UserID uint64 + func (ScoreJournal) TableName() string + type Search struct + Regex bool + Value string + type ShoppingCart struct + GSID string + Goods string + Quantity uint + Specification string + UserID uint64 + func (ShoppingCart) TableName() string + type Specification struct + Brokerage uint64 + CostPrice uint64 + GoodsID uint64 + Label string + MarketPrice uint64 + Num uint64 + Stock uint + Weight uint64 + func (Specification) TableName() string + type Store struct + Address string + Amount uint64 + ContactName string + Images string + Introduce string + Latitude float64 + Longitude float64 + Name string + OID uint64 + OrderPhone string + Phone string + Pictures string + ServicePhone string + Stars uint64 + StarsCount uint64 + func (Store) TableName() string + func (u *Store) BeforeCreate(scope *gorm.Scope) (err error) + type StoreJournal struct + Amount int64 + Balance uint64 + Detail string + Name string + StoreID uint64 + TargetID uint64 + Type int + func (StoreJournal) TableName() string + type StoreStock struct + GoodsID uint64 + SpecificationID uint64 + Stock uint64 + StoreID uint64 + UseStock uint64 + func (u StoreStock) TableName() string + type SupplyOrders struct + IsPay uint64 + OID uint64 + OrderNo string + PayMoney uint64 + PayTime time.Time + StoreID uint64 + Type string + UserID uint64 + func (SupplyOrders) TableName() string + func (u *SupplyOrders) BeforeCreate(scope *gorm.Scope) (err error) + type TimeSell struct + BuyNum int + DayNum int + Discount int + Enable bool + EndH int + EndM int + Hash string + OID uint64 + StartH int + StartM int + StartTime time.Time + TotalNum int + func (TimeSell) TableName() string + func (ts *TimeSell) BeforeCreate(scope *gorm.Scope) (err error) + func (ts *TimeSell) IsEnable() bool + type TimeSellGoods struct + Disable bool + GoodsID uint64 + OID uint64 + TimeSellHash string + func (TimeSellGoods) TableName() string + type Transfers struct + Amount uint64 + Desc string + IP string + IsPay uint64 + OpenId string + OrderNo string + ReUserName string + StoreID uint64 + UserID uint64 + func (Transfers) TableName() string + type User struct + Age int + Amount uint64 + BlockAmount uint64 + Gender int + Growth uint64 + LastLoginAt time.Time + Name string + OpenID string + Portrait string + RankID uint64 + Region string + Score uint64 + Subscribe int + SuperiorID uint64 + Tel string + func (User) TableName() string + type UserFormIds struct + FormId string + UserID uint64 + func (UserFormIds) TableName() string + type UserInfo struct + DaySignCount int + DaySignTime time.Time + UserID uint64 + func (UserInfo) TableName() string + type UserJournal struct + Amount int64 + Balance uint64 + DataKV string + Detail string + FromUserID uint64 + Name string + Type int + UserID uint64 + func (UserJournal) TableName() string + type Verification struct + CardItemID uint64 + Label string + Name string + Quantity uint + StoreID uint64 + StoreUserID uint64 + UserID uint64 + VerificationNo string + func (Verification) TableName() string + type Voucher struct + Amount uint64 + Image string + Introduce string + Name string + OID uint64 + UseDay int + func (Voucher) TableName() string + func (u *Voucher) BeforeCreate(scope *gorm.Scope) (err error) + type WxConfig struct + AppID string + AppSecret string + EncodingAESKey string + MchID string + PayKey string + Token string + func (WxConfig) TableName() string