2、coupon和user_coupon表增加limit字段; 3、零售开单时,如果使用优惠券,则同步更新优惠券对应的数据; 4、增加优惠券数据接口; 5、增加获取小程序跳转链接接口; 6、增加保定金自动审核的定时任务,每天早上9点30分退前一天的保证金,最多10条;
18 lines
330 B
Go
18 lines
330 B
Go
package config
|
|
|
|
import "github.com/spf13/viper"
|
|
|
|
type Message struct {
|
|
MiniProgramState string
|
|
SmsUrl string
|
|
}
|
|
|
|
func InitMessage(cfg *viper.Viper) *Message {
|
|
return &Message{
|
|
MiniProgramState: cfg.GetString("mini_program_state"),
|
|
SmsUrl: cfg.GetString("sms_url"),
|
|
}
|
|
}
|
|
|
|
var MessageConfig = new(Message)
|