mirror of
https://shylinux.com/x/enterprise
synced 2025-07-03 21:38:07 +08:00
add some
This commit is contained in:
parent
bea59d7171
commit
17e5178612
@ -2,12 +2,14 @@ package guanlixitong
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"shylinux.com/x/ice"
|
"shylinux.com/x/ice"
|
||||||
|
kit "shylinux.com/x/toolkits"
|
||||||
|
|
||||||
"shylinux.com/x/enterprise/src/guanlixitong/model"
|
"shylinux.com/x/enterprise/src/guanlixitong/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type company struct {
|
type company struct {
|
||||||
Table
|
Table
|
||||||
|
modify string `name:"modify info" role:"tech"`
|
||||||
list string `name:"list city_name company_name auto" role:"void"`
|
list string `name:"list city_name company_name auto" role:"void"`
|
||||||
authCreate string `name:"authCreate" role:"tech"`
|
authCreate string `name:"authCreate" role:"tech"`
|
||||||
}
|
}
|
||||||
@ -20,6 +22,9 @@ func (s company) FindOrCreateByName(m *ice.Message, arg ...string) {
|
|||||||
arg[2], arg[3] = model.COMPANY_UID, msg.Append(model.UID)
|
arg[2], arg[3] = model.COMPANY_UID, msg.Append(model.UID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
func (s company) Modify(m *ice.Message, arg ...string) {
|
||||||
|
s.Update(m, kit.Dict(m.OptionSimple(model.INFO)), m.OptionSimple(model.UID)...)
|
||||||
|
}
|
||||||
func (s company) List(m *ice.Message, arg ...string) {
|
func (s company) List(m *ice.Message, arg ...string) {
|
||||||
if len(arg) == 0 {
|
if len(arg) == 0 {
|
||||||
s.CityList(m)
|
s.CityList(m)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user