1
0
forked from x/icebergs
icebergs/misc/chrome/favor.go
2022-12-14 13:41:49 +08:00

21 lines
470 B
Go

package chrome
import (
"shylinux.com/x/ice"
)
type favor struct {
ice.Zone
short string `data:"zone"`
field string `data:"time,id,type,name,link"`
insert string `name:"insert zone*=官网文档 type name=hi link=*hello"`
list string `name:"list zone id auto insert" help:"收藏"`
}
func (f favor) List(m *ice.Message, arg ...string) {
if f.Zone.List(m, arg...); len(arg) == 0 {
m.Action(f.Export, f.Import)
}
}
func init() { ice.CodeCtxCmd(favor{}) }