This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-09-27 23:58:22 +08:00
parent 6caaf57760
commit 12dd761ede

View File

@ -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{}) }