1
This commit is contained in:
16
business/model/dao/tao_sku_img.go
Normal file
16
business/model/dao/tao_sku_img.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package dao
|
||||
|
||||
import "git.rosy.net.cn/jx-callback/business/model"
|
||||
|
||||
func GetVendorImg(skuId, vendorId int) (*model.TaoSkuImg, error) {
|
||||
result := &model.TaoSkuImg{}
|
||||
|
||||
sql := ` SELECT * FROM tao_sku_img WHERE sku_id = ? AND vendor_id = ?`
|
||||
parma := []interface{}{skuId, vendorId}
|
||||
|
||||
if err := GetRow(GetDB(), result, sql, parma); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
Reference in New Issue
Block a user