mirror of
https://shylinux.com/x/enterprise
synced 2025-04-25 09:08:06 +08:00
add some
This commit is contained in:
parent
bea59d7171
commit
17e5178612
@ -2,12 +2,14 @@ package guanlixitong
|
||||
|
||||
import (
|
||||
"shylinux.com/x/ice"
|
||||
kit "shylinux.com/x/toolkits"
|
||||
|
||||
"shylinux.com/x/enterprise/src/guanlixitong/model"
|
||||
)
|
||||
|
||||
type company struct {
|
||||
Table
|
||||
modify string `name:"modify info" role:"tech"`
|
||||
list string `name:"list city_name company_name auto" role:"void"`
|
||||
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)
|
||||
}
|
||||
}
|
||||
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) {
|
||||
if len(arg) == 0 {
|
||||
s.CityList(m)
|
||||
|
Loading…
x
Reference in New Issue
Block a user