You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
323 B
15 lines
323 B
package service
|
|
|
|
import (
|
|
"shop-api/global"
|
|
"shop-api/model"
|
|
)
|
|
|
|
func getBillView(orderId string) (model.BillView, error) {
|
|
var (
|
|
err error
|
|
result model.BillView
|
|
)
|
|
err = global.MG_DB.Model(&model.Bill{}).Where("order_id = ?", orderId).Select("order_id,transaction_id").First(&result).Error
|
|
return result, err
|
|
}
|
|
|