Documentation ¶
Index ¶
- func CreateContact(ctx context.Context, db *gorm.DB, s entity.Contact) (int64, error)
- func CreateRelation(ctx context.Context, s entity.Relation, db *gorm.DB) (int64, error)
- func CreateSupplier(ctx context.Context, db *gorm.DB, s entity.Supplier) (int64, error)
- func DeleteEntityByID(ctx context.Context, tx *gorm.DB, entity interface{}, id int64) error
- func GetContractByID(ctx context.Context, db *gorm.DB, id int64) (entity.Contact, error)
- func GetContractsByName(ctx context.Context, db *gorm.DB, name string) ([]entity.Contact, error)
- func GetRelationByID(ctx context.Context, db *gorm.DB, id int64) (entity.Relation, error)
- func GetSupplierByID(ctx context.Context, db *gorm.DB, id int64) (entity.Supplier, error)
- func GetSupplierByPage(ctx context.Context, db *gorm.DB, page, pageSize int) ([]entity.Supplier, error)
- func GetSuppliersByName(ctx context.Context, db *gorm.DB, name string) ([]entity.Supplier, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContact ¶
func CreateRelation ¶
func CreateSupplier ¶
func DeleteEntityByID ¶
func GetContractByID ¶
func GetContractsByName ¶
func GetRelationByID ¶
func GetSupplierByID ¶
func GetSupplierByPage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.