watcher/pkg/options/coachoutlet.go

19 lines
391 B
Go
Raw Normal View History

2024-04-10 17:36:56 +08:00
package options
import (
"fmt"
"time"
)
type CoachOutletOption struct {
RawUrl string `json:"raw_url"`
Pid string `json:"pid"` //商品的id
Remark string `json:"remark"`
PusherIds []uint `json:"pusherIds"`
Interval time.Duration `json:"interval"`
}
func (o *CoachOutletOption) Uid() string {
return fmt.Sprintf("coachOutlet_%s", o.Pid)
}