This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-05-26 18:41:54 +08:00
parent 85a6534f95
commit e9b2fd3836
4 changed files with 10 additions and 8 deletions

View File

@ -9,6 +9,8 @@ import (
_ "shylinux.com/x/enterprise/src/zijinlian"
_ "shylinux.com/x/enterprise/src/xiangmuguanli"
_ "shylinux.com/x/enterprise/src/peixunguanli"
)
func main() { print(ice.Run()) }

View File

@ -4,12 +4,11 @@ import "shylinux.com/x/ice"
type {{.Option "name"}} struct {
Table
order string `data:"1"`
fields string `data:"title,content,user_uid"`
create string `name:"create title* content*" role:"leader"`
remove string `name:"remove" role:"leader"`
}
func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) { s.ValueList(m, arg) }
func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) { s.ValueList(m, arg).Display("") }
func init() { ice.TeamCtxCmd({{.Option "name"}}{}) }

View File

@ -3,13 +3,14 @@ package {{.Option "zone"}}
import "shylinux.com/x/ice"
type {{.Option "name"}} struct {
Table
order string `data:"1"`
fields string `data:"title,content,user_uid"`
Tables
fields string `data:"title,content"`
create string `name:"create title* content*" role:"leader"`
remove string `name:"remove" role:"leader"`
}
func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) { s.ValueList(m, arg) }
func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) {
// s.ValueList(m, arg).Display("")
}
func init() { ice.TeamCtxCmd({{.Option "name"}}{}) }

View File

@ -1,7 +1,7 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.title||value.name||value.user_name, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]},
{view: html.TITLE, list: [value.title||value.name||value.user_name, can.onimport.titleAction(can, value)]},
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
{view: html.OUTPUT, list: [value.content||value.info]},
] })