mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-11-23 02:39:26 +08:00
33 lines
749 B
Go
33 lines
749 B
Go
package fast
|
|
|
|
import (
|
|
"github.com/beego/beego/v2/client/orm"
|
|
"github.com/beego/beego/v2/core/logs"
|
|
)
|
|
|
|
type MerchantDeployInfo struct {
|
|
Id string `orm:"pk;column(id)"`
|
|
Status string
|
|
MerchantUid string
|
|
PayType string
|
|
SingleRoadUid string
|
|
SingleRoadName string
|
|
}
|
|
|
|
const MERCHANTDEPLOYINFO = "merchant_deploy_info"
|
|
|
|
func (c *MerchantDeployInfo) TableName() string {
|
|
return MERCHANTDEPLOYINFO
|
|
}
|
|
|
|
func GetUserPayConfigByUserNo(userNo string) *MerchantDeployInfo {
|
|
o := orm.NewOrm()
|
|
userPayConfig := new(MerchantDeployInfo)
|
|
_, err := o.QueryTable(MERCHANTDEPLOYINFO).Filter("user_no", userNo).All(userPayConfig)
|
|
if err != nil {
|
|
logs.Error("获取用户支付配置错误:", err)
|
|
}
|
|
|
|
return userPayConfig
|
|
}
|