mirror of
https://shylinux.com/x/enterprise
synced 2025-04-25 09:08:06 +08:00
add some
This commit is contained in:
parent
6caaf57760
commit
12dd761ede
@ -9,7 +9,7 @@ import (
|
||||
type company struct {
|
||||
Table
|
||||
list string `name:"list city_name company_name auto" role:"void"`
|
||||
authCreate string `name:"authCreate city_name* company_name* company_info" role:"tech"`
|
||||
authCreate string `name:"authCreate" role:"tech"`
|
||||
}
|
||||
|
||||
func (s company) FindOrCreateByName(m *ice.Message, arg ...string) {
|
||||
@ -35,9 +35,8 @@ func (s company) List(m *ice.Message, arg ...string) {
|
||||
}
|
||||
}
|
||||
func (s company) AuthCreate(m *ice.Message, arg ...string) {
|
||||
msg := s.CityList(m.Spawn(), m.Option(model.CITY_NAME))
|
||||
s.Table.AuthCreate(m, m.Option(model.CITY_NAME), m.Option(model.COMPANY_NAME), 4, m.Option(model.COMPANY_NAME), m.Option(model.COMPANY_INFO),
|
||||
model.CITY_UID, msg.Append(model.UID), model.NAME, m.Option(model.COMPANY_NAME))
|
||||
msg := s.Select(m.Spawn(), m.OptionSimple(model.CITY_UID)...)
|
||||
s.Table.AuthCreate(m, 4, msg.Append(model.AUTH_UID), m.Option(model.COMPANY_NAME), m.Option(model.COMPANY_INFO))
|
||||
}
|
||||
|
||||
func init() { ice.TeamCtxCmd(company{}) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user