mirror of
https://shylinux.com/x/enterprise
synced 2025-04-25 17:18:06 +08:00
add some
This commit is contained in:
parent
b94ea119f9
commit
aa6ca8100b
@ -13,7 +13,7 @@ type Portal struct {
|
||||
guanlixitong.Portal
|
||||
product Product
|
||||
order Order
|
||||
placeCreate string `name:"placeCreate city_name* company_name* store_name* store_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* store_name* store_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||
|
@ -2,7 +2,6 @@ package guanlixitong
|
||||
|
||||
import (
|
||||
"shylinux.com/x/ice"
|
||||
kit "shylinux.com/x/toolkits"
|
||||
|
||||
"shylinux.com/x/enterprise/src/guanlixitong/model"
|
||||
)
|
||||
@ -23,24 +22,22 @@ func (s company) FindOrCreateByName(m *ice.Message, arg ...string) {
|
||||
}
|
||||
}
|
||||
func (s company) Modify(m *ice.Message, arg ...string) {
|
||||
s.Update(m, kit.Dict(m.OptionSimple(model.INFO)), m.OptionSimple(model.UID)...)
|
||||
s.Update(m, m.OptionSimple(model.INFO), m.OptionSimple(model.UID)...)
|
||||
}
|
||||
func (s company) List(m *ice.Message, arg ...string) {
|
||||
if len(arg) == 0 {
|
||||
s.CityList(m)
|
||||
} else if len(arg) == 1 {
|
||||
msg := s.CityList(m.Spawn(), arg[0])
|
||||
} else if msg := s.CityList(m.Spawn(), arg[0]); len(arg) == 1 {
|
||||
s.Select(m, model.CITY_UID, msg.Append(model.UID))
|
||||
} else if len(arg) == 2 {
|
||||
msg := s.CityList(m.Spawn(), arg[0])
|
||||
s.Select(m, model.CITY_UID, msg.Append(model.UID), model.NAME, arg[1])
|
||||
if m.Append(model.AUTH_UID) == "" && m.IsTech() {
|
||||
if m.Append(model.AUTH_UID) == "" {
|
||||
m.EchoInfoButton("请申请公司认证", s.AuthCreate)
|
||||
}
|
||||
}
|
||||
}
|
||||
func (s company) AuthCreate(m *ice.Message, arg ...string) {
|
||||
msg := m.Cmd("web.team.gonganxitong.city", s.Select, model.UID, m.Option(model.CITY_UID))
|
||||
msg := s.CityCmd(m, s.Select, model.UID, m.Option(model.CITY_UID))
|
||||
s.Table.AuthCreate(m, 4, msg.Append(model.AUTH_UID), m.OptionSimple(model.UID)...)
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ import "shylinux.com/x/community/src/gonganxitong"
|
||||
|
||||
type Portal struct {
|
||||
gonganxitong.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* group_name* group_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* group_name* group_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(NewPortal(userGroup{}, group{})) }
|
||||
|
@ -1,8 +1,6 @@
|
||||
{
|
||||
"portal": "管理系统",
|
||||
"portal": "管理系统", "member": "团队成员",
|
||||
"target": "目标计划",
|
||||
"member": "团队成员",
|
||||
"company": "公司信息",
|
||||
"icons": {
|
||||
"target": "https://img.icons8.com/officel/80/goal--v1.png"
|
||||
},
|
||||
@ -10,8 +8,7 @@
|
||||
"My Group": "我的团队",
|
||||
"user_group_role": "成员角色",
|
||||
"group_name": "团队名称",
|
||||
"group_type": "团队类型",
|
||||
"company_name": "公司名称"
|
||||
"group_type": "团队类型"
|
||||
},
|
||||
"value": {
|
||||
"user_group_role": {
|
||||
|
@ -5,17 +5,15 @@ import "shylinux.com/x/mysql-story/src/db"
|
||||
const (
|
||||
UID = "uid"
|
||||
NAME = "name"
|
||||
INFO = "info"
|
||||
TYPE = "type"
|
||||
TITLE = "title"
|
||||
CONTENT = "content"
|
||||
USER_UID = "user_uid"
|
||||
USER_CHANNEL_ROLE = "user_channel_role"
|
||||
CHANNEL_UID = "channel_uid"
|
||||
CHANNEL_NAME = "channel_name"
|
||||
CHANNEL_TYPE = "channel_type"
|
||||
PROMOTION_UID = "promotion_uid"
|
||||
COMPANY_UID = "company_uid"
|
||||
CITY_UID = "city_uid"
|
||||
)
|
||||
|
||||
type UserChannel struct {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type Portal struct {
|
||||
guanlixitong.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* channel_name* channel_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* channel_name* channel_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userChannel{}, channel{})}) }
|
||||
|
@ -5,17 +5,15 @@ import "shylinux.com/x/mysql-story/src/db"
|
||||
const (
|
||||
UID = "uid"
|
||||
NAME = "name"
|
||||
INFO = "info"
|
||||
TYPE = "type"
|
||||
TITLE = "title"
|
||||
CONTENT = "content"
|
||||
USER_UID = "user_uid"
|
||||
USER_CAPITAL_ROLE = "user_capital_role"
|
||||
CAPITAL_UID = "capital_uid"
|
||||
CAPITAL_NAME = "capital_name"
|
||||
CAPITAL_TYPE = "capital_type"
|
||||
INVESTMENT_UID = "investment_uid"
|
||||
COMPANY_UID = "company_uid"
|
||||
CITY_UID = "city_uid"
|
||||
)
|
||||
|
||||
type UserCapital struct {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type Portal struct {
|
||||
guanlixitong.Portal
|
||||
placeCreate string `name:"placeCreate city_name* company_name* capital_name* capital_type*:select" role:"void"`
|
||||
placeCreate string `name:"placeCreate city_name* company_name* capital_name* capital_type:select" role:"void"`
|
||||
}
|
||||
|
||||
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userCapital{}, capital{})}) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user