|
package log
|
|
|
|
import (
|
|
"github.com/go-xorm/xorm"
|
|
"leit.com/LAPP_GAAS_GFrame/dao/log/implments"
|
|
"leit.com/LAPP_GAAS_GFrame/grmi"
|
|
model "leit.com/LAPP_GAAS_GFrame/models/log"
|
|
)
|
|
|
|
type VendorUserLstDAO interface {
|
|
//插入VendorUserLst
|
|
InsertOne(entity *model.VendorUserLst) error
|
|
//删除指定键的VendorUserLst
|
|
DeleteOne(vendorId string) error
|
|
//查找指定键的VendorUserLst
|
|
SelectOne(vendorId string) (*model.VendorUserLst, error)
|
|
//修改VendorUserLst
|
|
UpdateOne(entity *model.VendorUserLst) error
|
|
//按条件查询VendorUserLst
|
|
Select(predicates []grmi.Predicate, orderByFields []grmi.Field) ([]model.VendorUserLst, error)
|
|
//按条件查询VendorUserLst并分页
|
|
SelectAndPaging(paging *grmi.Paging, predicates []grmi.Predicate, orderByFields []grmi.Field) (grmi.PagingResult, error)
|
|
}
|
|
|
|
func NewVendorUserLstDAO(session *xorm.Session, plantNr int, userid string) VendorUserLstDAO {
|
|
return implments.NewVendorUserLstDAOImplement(session, plantNr, userid)
|
|
}
|