mirror of
https://shylinux.com/x/community
synced 2025-04-26 01:54:05 +08:00
add some
This commit is contained in:
parent
82a304c292
commit
81fa4541fd
@ -33,7 +33,7 @@ func (s apply) Create(m *ice.Message, arg ...string) {
|
|||||||
USER_PLACE_ROLE := s.Keys(s.UserPlace, model.ROLE)
|
USER_PLACE_ROLE := s.Keys(s.UserPlace, model.ROLE)
|
||||||
arg = kit.TransArgKeys(arg, PLACE_UID, model.PLACE_UID)
|
arg = kit.TransArgKeys(arg, PLACE_UID, model.PLACE_UID)
|
||||||
arg = kit.TransArgKeys(arg, USER_PLACE_ROLE, model.ROLE)
|
arg = kit.TransArgKeys(arg, USER_PLACE_ROLE, model.ROLE)
|
||||||
s.Table.Create(m, kit.Simple(model.PLACE_UID, m.Option(PLACE_UID), arg, m.OptionSimple(model.USER_UID), model.TABLES, PLACE_UID, model.STATUS, ApplyCreate)...)
|
s.Table.Create(m, kit.Simple(model.PLACE_UID, m.Option(PLACE_UID), arg, m.OptionSimple(model.USER_UID), model.STATUS, ApplyCreate)...)
|
||||||
m.ProcessRewrite(model.UID, m.Result())
|
m.ProcessRewrite(model.UID, m.Result())
|
||||||
}
|
}
|
||||||
func (s apply) List(m *ice.Message, arg ...string) {
|
func (s apply) List(m *ice.Message, arg ...string) {
|
||||||
|
@ -9,6 +9,7 @@ field web.chat.wx.menu
|
|||||||
field web.code.mysql.client
|
field web.code.mysql.client
|
||||||
field web.code.mysql.query args `mysql gonganxitong`
|
field web.code.mysql.query args `mysql gonganxitong`
|
||||||
field web.code.db.models
|
field web.code.db.models
|
||||||
|
field web.code.db.mysql
|
||||||
order `
|
order `
|
||||||
sess.go
|
sess.go
|
||||||
user.go
|
user.go
|
||||||
|
@ -16,11 +16,15 @@ type user struct {
|
|||||||
Table
|
Table
|
||||||
community string `data:"20240724-community"`
|
community string `data:"20240724-community"`
|
||||||
template string `data:"4b-Z_r8dZmm1pHdd2h4A10VVYX4OIHvemlLjsHKBj2s"`
|
template string `data:"4b-Z_r8dZmm1pHdd2h4A10VVYX4OIHvemlLjsHKBj2s"`
|
||||||
create string `name:"create open_id* name usernick"`
|
create string `name:"create open_id* usernick avatar"`
|
||||||
email string `name:"email email*"`
|
email string `name:"email email*"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s user) Create(m *ice.Message, arg ...string) {
|
func (s user) Create(m *ice.Message, arg ...string) {
|
||||||
|
if m.IsTech() {
|
||||||
|
m.OptionDefault(aaa.AVATAR, m.Option(ice.MSG_AVATAR))
|
||||||
|
m.OptionDefault(aaa.USERNICK, m.Option(ice.MSG_USERNICK))
|
||||||
|
}
|
||||||
if s.Table.Select(m, m.OptionSimple(model.OPEN_ID)...).Length() == 0 {
|
if s.Table.Select(m, m.OptionSimple(model.OPEN_ID)...).Length() == 0 {
|
||||||
s.Table.Create(m, kit.Simple(m.OptionSimple(model.OPEN_ID, model.AVATAR), model.NAME, m.Option(aaa.USERNICK))...)
|
s.Table.Create(m, kit.Simple(m.OptionSimple(model.OPEN_ID, model.AVATAR), model.NAME, m.Option(aaa.USERNICK))...)
|
||||||
m.Option(model.USER_UID, m.Result())
|
m.Option(model.USER_UID, m.Result())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user