feat:完善项目信息
This commit is contained in:
@ -10,10 +10,9 @@ import (
|
||||
|
||||
type Instance struct {
|
||||
*session.Enterprise
|
||||
local string
|
||||
}
|
||||
|
||||
type InstanceHandle func(session *session.Enterprise, local string) *Instance
|
||||
type InstanceHandle func(session *session.Enterprise) *Instance
|
||||
|
||||
type InstanceForJoin struct {
|
||||
*model.ActivityInstanceJoinInfo
|
||||
@ -25,9 +24,8 @@ func (c *Instance) Joins(title string, status, page, pageSize int) (*controller.
|
||||
mActivityInstance := model.NewActivityInstance()
|
||||
|
||||
where := []*model2.ModelWhere{
|
||||
model2.NewWhere("a.local", c.local),
|
||||
model2.NewWhere("a.identity", c.Identity),
|
||||
model2.NewWhere("j.m_uid", c.UID),
|
||||
model2.NewWhere("j.identity", c.SelectIdentity),
|
||||
model2.NewWhere("j.uid", c.UID),
|
||||
}
|
||||
|
||||
if title != "" {
|
||||
@ -73,7 +71,7 @@ func (c *Instance) JoinDelete(id uint64) error {
|
||||
}
|
||||
|
||||
func NewInstance() InstanceHandle {
|
||||
return func(session *session.Enterprise, local string) *Instance {
|
||||
return &Instance{Enterprise: session, local: local}
|
||||
return func(session *session.Enterprise) *Instance {
|
||||
return &Instance{Enterprise: session}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user