2023-02-09 20:36:34 +08:00
|
|
|
package requestparams
|
2022-09-23 17:40:48 +08:00
|
|
|
|
|
|
|
|
type PushTarget struct {
|
|
|
|
|
Target interface{} `json:"target,omitempty"`
|
|
|
|
|
Alias []string `json:"alias,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (p *PushTarget) SetTarget(target int) {
|
|
|
|
|
p.Target = target
|
|
|
|
|
}
|
|
|
|
|
func (p *PushTarget) SetAlias(alias []string) {
|
|
|
|
|
p.Alias = alias
|
|
|
|
|
}
|