From 1db0d90fde50f06d8f1465091f369c4e7f786d8f Mon Sep 17 00:00:00 2001 From: dengbiao Date: Mon, 1 Jul 2024 20:23:53 +0800 Subject: [PATCH 1/7] 1 --- src/implement/super_cloud_issuance_package_ord_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/implement/super_cloud_issuance_package_ord_db.go b/src/implement/super_cloud_issuance_package_ord_db.go index b3c75c4..6f17fb1 100644 --- a/src/implement/super_cloud_issuance_package_ord_db.go +++ b/src/implement/super_cloud_issuance_package_ord_db.go @@ -36,7 +36,7 @@ func (s SuperCloudIssuancePackageOrdDb) SaveCloudIssuancePackageOrd(id interface func (s SuperCloudIssuancePackageOrdDb) UserOrdList(uid interface{}, req md.BuyPackageRecordsRequest) (resp []*md.BuyPackageRecordsResponse, total int64, err error) { total, err = s.Db.Table("super_cloud_issuance_package_ord"). - Join("INNER", "super_cloud_issuance_package_ord", "super_cloud_issuance_package_ord.package_id = super_cloud_issuance_robot_package.id"). + Join("INNER", "super_cloud_issuance_robot_package", "super_cloud_issuance_package_ord.package_id = super_cloud_issuance_robot_package.id"). Where("super_cloud_issuance_package_ord.uid = ?", uid). OrderBy("super_cloud_issuance_package_ord.id DESC"). Cols("super_cloud_issuance_package_ord.*, super_cloud_issuance_robot_package.name as package_name"). From 42ea3066b6996cdef38eab51dd3ac58c87d8e4b1 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 4 Jul 2024 12:19:51 +0800 Subject: [PATCH 2/7] 1 --- ...ud_issuance_user_robot_bind_source_follow_group_db.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go b/src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go index 0b45909..6e2dafb 100644 --- a/src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go +++ b/src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go @@ -6,16 +6,17 @@ import ( "xorm.io/xorm" ) -func NewSuperCloudIssuanceUserRobotBindSourceFollowGroupDb(engine *xorm.Engine) dao.SuperCloudIssuanceUserRobotBindSourceFollowGroupDao { - return &SuperCloudIssuanceUserRobotBindSourceFollowGroupDb{Db: engine} +func NewSuperCloudIssuanceUserRobotBindSourceFollowGroupDb(engine *xorm.Engine, session *xorm.Session) dao.SuperCloudIssuanceUserRobotBindSourceFollowGroupDao { + return &SuperCloudIssuanceUserRobotBindSourceFollowGroupDb{Db: engine, Session: session} } type SuperCloudIssuanceUserRobotBindSourceFollowGroupDb struct { - Db *xorm.Engine + Db *xorm.Engine + Session *xorm.Session } func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) { - affected, err := s.Db.Insert(data) + affected, err := s.Session.Insert(data) if err != nil { return 0, err } From 1646ec1c28ac8f918c5334e7467930e68eea2559 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 4 Jul 2024 15:04:38 +0800 Subject: [PATCH 3/7] update --- ...ance_user_robot_with_activate_group_dao.go | 22 +++++++++++++++++++ ...uance_user_robot_with_activate_group_db.go | 15 +++++++++++++ super_cloud_issuance/md/md_request.go | 4 ++++ 3 files changed, 41 insertions(+) diff --git a/src/dao/super_cloud_issuance_user_robot_with_activate_group_dao.go b/src/dao/super_cloud_issuance_user_robot_with_activate_group_dao.go index 095695a..21f0237 100644 --- a/src/dao/super_cloud_issuance_user_robot_with_activate_group_dao.go +++ b/src/dao/super_cloud_issuance_user_robot_with_activate_group_dao.go @@ -6,7 +6,29 @@ type SuperCloudIssuanceUserRobotWithActivateGroupDao interface { GetSuperCloudIssuanceUserRobotWithActivateGroupByChatRoomId(chatRoomId string, robotId int) (m *models.SuperCloudIssuanceUserRobotWithActivateGroup, err error) GetSuperCloudIssuanceUserRobotWithActivateGroup(id int) (m *models.SuperCloudIssuanceUserRobotWithActivateGroup, err error) FindSuperCloudIssuanceUserRobotWithActivateGroup(uid, page, pageSize int, name string) (m []*models.SuperCloudIssuanceUserRobotWithActivateGroup, err error) + FindSuperCloudIssuanceUserRobotWithActivateGroupWithSource(uid, page, pageSize int) (m []*FindSuperCloudIssuanceUserRobotWithActivateGroupWithSourceResponse, total int64, err error) InsertSuperCloudIssuanceUserRobotWithActivateGroup(m *models.SuperCloudIssuanceUserRobotWithActivateGroup) (id int, err error) DelSuperCloudIssuanceUserRobotWithActivateGroup(id int) (int64, error) SaveSuperCloudIssuanceUserRobotWithActivateGroup(id interface{}, m *models.SuperCloudIssuanceUserRobotWithActivateGroup, forceColums ...string) (affected int64, err error) } + +type FindSuperCloudIssuanceUserRobotWithActivateGroupWithSourceResponse struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uid int `json:"uid" xorm:"not null default 0 comment('uid') INT(11)"` + Name string `json:"name" xorm:"not null default '' comment('群名称') VARCHAR(255)"` + RobotId int `json:"robot_id" xorm:"not null default 0 comment('机器人id') INT(11)"` + ChatRoomId string `json:"chat_room_id" xorm:"not null default '' comment('微信群id') VARCHAR(255)"` + ChatRoomOwnerWxNickname string `json:"chat_room_owner_wx_nickname" xorm:"not null default '' comment('群所有者微信昵称') VARCHAR(255)"` + ChatRoomOwnerWxHeadUrl string `json:"chat_room_owner_wx_head_url" xorm:"not null default '' comment('群所有者微信头像') VARCHAR(255)"` + ChatRoomOwner string `json:"chat_room_owner" xorm:"not null default '' comment('群所有者') VARCHAR(255)"` + MemberCount int `json:"member_count" xorm:"not null default 0 comment('群成员数') INT(11)"` + BigHeadImgUrl string `json:"big_head_img_url" xorm:"not null default '' comment('大的群头像') VARCHAR(255)"` + SmallHeadImgUrl string `json:"small_head_img_url" xorm:"not null default '' comment('小的群头像') VARCHAR(255)"` + State int `json:"state" xorm:"not null default 1 comment('状态(1正常 2暂停)') TINYINT(1)"` + CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"` + UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"` + + SourceActivateGroupId int `json:"source_activate_group_id" xorm:"not null default 0 comment('源头激活群id') INT(11)"` + SourceName string `json:"source_name" xorm:"not null default 0 comment('源头群名称') INT(11)"` + Desc string `json:"desc" xorm:"not null comment('源头介绍') TEXT"` +} diff --git a/src/implement/super_cloud_issuance_user_robot_with_activate_group_db.go b/src/implement/super_cloud_issuance_user_robot_with_activate_group_db.go index 9ecbe50..113bd56 100644 --- a/src/implement/super_cloud_issuance_user_robot_with_activate_group_db.go +++ b/src/implement/super_cloud_issuance_user_robot_with_activate_group_db.go @@ -15,6 +15,21 @@ type SuperCloudIssuanceUserRobotWithActivateGroupDb struct { Db *xorm.Engine } +func (s SuperCloudIssuanceUserRobotWithActivateGroupDb) FindSuperCloudIssuanceUserRobotWithActivateGroupWithSource(uid, page, pageSize int) (resp []*dao.FindSuperCloudIssuanceUserRobotWithActivateGroupWithSourceResponse, total int64, err error) { + total, err = s.Db.Table("super_cloud_issuance_user_robot_with_activate_group"). + Join("LEFT", "super_cloud_issuance_user_robot_bind_source_follow_group", "super_cloud_issuance_user_robot_with_activate_group.id = super_cloud_issuance_user_robot_bind_source_follow_group.follow_activate_group_id"). + Join("LEFT", "super_cloud_issuance_user_robot_bind_source", "super_cloud_issuance_user_robot_bind_source_follow_group.activate_group_id = super_cloud_issuance_user_robot_bind_source.activate_group_id"). + Where("super_cloud_issuance_user_robot_with_activate_group.uid = ?", uid). + OrderBy("super_cloud_issuance_user_robot_with_activate_group.id DESC"). + Cols("super_cloud_issuance_user_robot_with_activate_group.*,"+ + " super_cloud_issuance_user_robot_bind_source.activate_group_id as source_activate_group_id,"+ + " super_cloud_issuance_user_robot_bind_source.name as source_name,"+ + " super_cloud_issuance_user_robot_bind_source.desc as desc"). + Limit(pageSize, (page-1)*pageSize). + FindAndCount(&resp) + return +} + func (s SuperCloudIssuanceUserRobotWithActivateGroupDb) SaveSuperCloudIssuanceUserRobotWithActivateGroup(id interface{}, m *models.SuperCloudIssuanceUserRobotWithActivateGroup, forceColums ...string) (affected int64, err error) { if forceColums != nil { affected, err = s.Db.Where("id=?", id).Cols(forceColums...).Update(m) diff --git a/super_cloud_issuance/md/md_request.go b/super_cloud_issuance/md/md_request.go index c4af512..394fb1e 100644 --- a/super_cloud_issuance/md/md_request.go +++ b/super_cloud_issuance/md/md_request.go @@ -41,6 +41,10 @@ type SourceGroupListRequest struct { Page int `json:"page"` Limit int `json:"limit"` } +type SourceGroupIndexRequest struct { + Page int `json:"page"` + Limit int `json:"limit"` +} type PreviewSourceRequest struct { ActivateGroupId int `json:"activate_group_id"` Page int `json:"page"` From ba6655ac9bfa2f6426d240a27d3a8c82ababcd00 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 4 Jul 2024 16:17:41 +0800 Subject: [PATCH 4/7] 1 --- ...loud_issuance_user_robot_bind_group_dao.go | 37 ++++++++++--------- ...cloud_issuance_user_robot_bind_group_db.go | 16 ++++---- super_cloud_issuance/md/md_request.go | 9 +++++ 3 files changed, 38 insertions(+), 24 deletions(-) diff --git a/src/dao/super_cloud_issuance_user_robot_bind_group_dao.go b/src/dao/super_cloud_issuance_user_robot_bind_group_dao.go index fe46c43..7447c4d 100644 --- a/src/dao/super_cloud_issuance_user_robot_bind_group_dao.go +++ b/src/dao/super_cloud_issuance_user_robot_bind_group_dao.go @@ -2,32 +2,35 @@ import ( "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" - "time" + "xorm.io/xorm" ) type SuperCloudIssuanceUserRobotBindGroupDao interface { GetSuperCloudIssuanceUserRobotBindGroup(id int) (m *models.SuperCloudIssuanceUserRobotBindGroup, err error) GetSuperCloudIssuanceUserRobotBindGroupByChatRoomId(chatRoomId string) (m *models.SuperCloudIssuanceUserRobotBindGroup, err error) - InsertSuperCloudIssuanceUserRobotBindGroup(m *models.SuperCloudIssuanceUserRobotBindGroup) (id int, err error) + InsertSuperCloudIssuanceUserRobotBindGroup(sess *xorm.Session, m *models.SuperCloudIssuanceUserRobotBindGroup) (id int, err error) SaveSuperCloudIssuanceUserRobotBindGroup(id interface{}, m *models.SuperCloudIssuanceUserRobotBindGroup, forceColums ...string) (affected int64, err error) DeleteSuperCloudIssuanceUserRobotBindGroup(id interface{}) (affected int64, err error) - FindSuperCloudIssuanceUserRobotBindGroup() (resp []*FindCloudIssuanceUserRobotBindGroupResponse, total int64, err error) + FindSuperCloudIssuanceUserRobotBindGroup(page, pageSize int) (resp []*FindCloudIssuanceUserRobotBindGroupResponse, total int64, err error) FindSuperCloudIssuanceUserRobotBindGroupByCategory(categoryId int) (m []*models.SuperCloudIssuanceUserRobotBindGroup, err error) } type FindCloudIssuanceUserRobotBindGroupResponse struct { - Id int `json:"id" ` - Uid int `json:"uid"` - Name string `json:"name"` - RobotId int `json:"robot_id"` - ChatRoomId string `json:"chat_room_id"` - ChatRoomOwner string `json:"chat_room_owner"` - MemberCount int `json:"member_count"` - BigHeadImgUrl string `json:"big_head_img_url"` - SmallHeadImgUrl string `json:"small_head_img_url"` - GoodsCategoryId int `json:"goods_category_id"` - State int `json:"state"` - GoodsCategoryName string `json:"goods_category_name"` - CreateAt time.Time `json:"create_at"` - UpdateAt time.Time `json:"update_at"` + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uid int `json:"uid" xorm:"not null default 0 comment('uid') INT(11)"` + Name string `json:"name" xorm:"not null default '' comment('群名称') VARCHAR(255)"` + RobotId int `json:"robot_id" xorm:"not null default 0 comment('机器人id') INT(11)"` + ChatRoomId string `json:"chat_room_id" xorm:"not null default '' comment('微信群id') VARCHAR(255)"` + ChatRoomOwnerWxNickname string `json:"chat_room_owner_wx_nickname" xorm:"not null default '' comment('群所有者微信昵称') VARCHAR(255)"` + ChatRoomOwnerWxHeadUrl string `json:"chat_room_owner_wx_head_url" xorm:"not null default '' comment('群所有者微信头像') VARCHAR(255)"` + ChatRoomOwner string `json:"chat_room_owner" xorm:"not null default '' comment('群所有者') VARCHAR(255)"` + MemberCount int `json:"member_count" xorm:"not null default 0 comment('群成员数') INT(11)"` + BigHeadImgUrl string `json:"big_head_img_url" xorm:"not null default '' comment('大的群头像') VARCHAR(255)"` + SmallHeadImgUrl string `json:"small_head_img_url" xorm:"not null default '' comment('小的群头像') VARCHAR(255)"` + State int `json:"state" xorm:"not null default 1 comment('状态(1正常 2暂停)') TINYINT(1)"` + CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"` + UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"` + + GoodsCategoryId int `json:"goods_category_id"` + GoodsCategoryName string `json:"goods_category_name"` } diff --git a/src/implement/super_cloud_issuance_user_robot_bind_group_db.go b/src/implement/super_cloud_issuance_user_robot_bind_group_db.go index 21a40fb..e42524e 100644 --- a/src/implement/super_cloud_issuance_user_robot_bind_group_db.go +++ b/src/implement/super_cloud_issuance_user_robot_bind_group_db.go @@ -43,8 +43,8 @@ func (s SuperCloudIssuanceUserRobotBindGroupDb) GetSuperCloudIssuanceUserRobotBi return m, nil } -func (s SuperCloudIssuanceUserRobotBindGroupDb) InsertSuperCloudIssuanceUserRobotBindGroup(m *models.SuperCloudIssuanceUserRobotBindGroup) (id int, err error) { - _, err = s.Db.InsertOne(m) +func (s SuperCloudIssuanceUserRobotBindGroupDb) InsertSuperCloudIssuanceUserRobotBindGroup(sess *xorm.Session, m *models.SuperCloudIssuanceUserRobotBindGroup) (id int, err error) { + _, err = sess.InsertOne(m) if err != nil { return 0, err } @@ -69,12 +69,14 @@ func (s SuperCloudIssuanceUserRobotBindGroupDb) DeleteSuperCloudIssuanceUserRobo return 1, nil } -func (s SuperCloudIssuanceUserRobotBindGroupDb) FindSuperCloudIssuanceUserRobotBindGroup() (resp []*dao.FindCloudIssuanceUserRobotBindGroupResponse, total int64, err error) { - total, err = s.Db.Table("super_cloud_issuance_user_robot_bind_group"). +func (s SuperCloudIssuanceUserRobotBindGroupDb) FindSuperCloudIssuanceUserRobotBindGroup(page, pageSize int) (resp []*dao.FindCloudIssuanceUserRobotBindGroupResponse, total int64, err error) { + total, err = s.Db.Table("super_cloud_issuance_user_robot_with_activate_group"). + Join("LEFT", "super_cloud_issuance_user_robot_bind_group", "super_cloud_issuance_user_robot_with_activate_group.id = super_cloud_issuance_user_robot_bind_group.activate_group_id"). Join("LEFT", "super_cloud_issuance_goods_category", "super_cloud_issuance_user_robot_bind_group.goods_category_id = super_cloud_issuance_goods_category.id"). - Where("super_cloud_issuance_user_robot_bind_group.uid = ?", s.Uid). - OrderBy("super_cloud_issuance_user_robot_bind_group.id DESC"). - Cols("super_cloud_issuance_user_robot_bind_group.*, super_cloud_issuance_goods_category.name as goods_category_name"). + Where("super_cloud_issuance_user_robot_with_activate_group.uid = ?", s.Uid). + OrderBy("super_cloud_issuance_user_robot_with_activate_group.id DESC"). + Cols("super_cloud_issuance_user_robot_with_activate_group.*, super_cloud_issuance_user_robot_bind_group.activate_group_id, super_cloud_issuance_goods_category.name as goods_category_name"). + Limit(pageSize, (page-1)*pageSize). FindAndCount(&resp) return } diff --git a/super_cloud_issuance/md/md_request.go b/super_cloud_issuance/md/md_request.go index 394fb1e..8f0c02a 100644 --- a/super_cloud_issuance/md/md_request.go +++ b/super_cloud_issuance/md/md_request.go @@ -193,3 +193,12 @@ type GroupManageWhiteWithUserSaveRequest struct { ActivateGroupId int `json:"activate_group_id"` WxIds []string `json:"wc_ids"` } + +type OneClickGroupSendIndexRequest struct { + Page int `json:"page"` + Limit int `json:"limit"` +} +type OneClickGroupSendBindCategoryRequest struct { + ActivateGroupId int `json:"activate_group_id"` + CategoryId int `json:"category_id"` +} From ddc39fca0c357e20ea702f3194229615de47799c Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 4 Jul 2024 17:21:53 +0800 Subject: [PATCH 5/7] 1 --- src/dao/super_cloud_issuance_add_group_welcome_message_dao.go | 1 - .../super_cloud_issuance_add_group_welcome_message_db.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dao/super_cloud_issuance_add_group_welcome_message_dao.go b/src/dao/super_cloud_issuance_add_group_welcome_message_dao.go index 709ba43..d603eda 100644 --- a/src/dao/super_cloud_issuance_add_group_welcome_message_dao.go +++ b/src/dao/super_cloud_issuance_add_group_welcome_message_dao.go @@ -12,7 +12,6 @@ type SuperCloudIssuanceAddGroupWelcomeMessageDao interface { } type FindSuperCloudIssuanceAddGroupWelcomeMessageResponse struct { - Id int `json:"id" xorm:"not null pk autoincr comment('自增id') INT(11)"` ActivateGroupId int `json:"activate_group_id" xorm:"not null default 0 comment('绑定激活群id') INT(11)"` Content string `json:"content" xorm:"not null default '' comment('内容') VARCHAR(255)"` State int `json:"state" xorm:"not null default 1 comment('状态(1正常 2暂停)') TINYINT(1)"` diff --git a/src/implement/super_cloud_issuance_add_group_welcome_message_db.go b/src/implement/super_cloud_issuance_add_group_welcome_message_db.go index 4fd628b..0dea62d 100644 --- a/src/implement/super_cloud_issuance_add_group_welcome_message_db.go +++ b/src/implement/super_cloud_issuance_add_group_welcome_message_db.go @@ -21,6 +21,7 @@ func (s SuperCloudIssuanceAddGroupWelcomeMessageDb) FindSuperCloudIssuanceAddGro Where("super_cloud_issuance_user_robot_with_activate_group.uid = ?", uid). OrderBy("super_cloud_issuance_user_robot_with_activate_group.id DESC"). Cols("super_cloud_issuance_add_group_welcome_message.*,"+ + " super_cloud_issuance_user_robot_with_activate_group.id as activate_group_id,"+ " super_cloud_issuance_user_robot_with_activate_group.uid,"+ " super_cloud_issuance_user_robot_with_activate_group.name,"+ " super_cloud_issuance_user_robot_with_activate_group.robot_id,"+ From b79c9b1b8c096c6da6d2c02720d1229093961594 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 4 Jul 2024 18:08:25 +0800 Subject: [PATCH 6/7] update --- .../super_cloud_issuance_add_group_welcome_message_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/implement/super_cloud_issuance_add_group_welcome_message_db.go b/src/implement/super_cloud_issuance_add_group_welcome_message_db.go index 0dea62d..ab519f1 100644 --- a/src/implement/super_cloud_issuance_add_group_welcome_message_db.go +++ b/src/implement/super_cloud_issuance_add_group_welcome_message_db.go @@ -20,7 +20,7 @@ func (s SuperCloudIssuanceAddGroupWelcomeMessageDb) FindSuperCloudIssuanceAddGro Join("LEFT", "super_cloud_issuance_add_group_welcome_message", "super_cloud_issuance_user_robot_with_activate_group.id = super_cloud_issuance_add_group_welcome_message.activate_group_id"). Where("super_cloud_issuance_user_robot_with_activate_group.uid = ?", uid). OrderBy("super_cloud_issuance_user_robot_with_activate_group.id DESC"). - Cols("super_cloud_issuance_add_group_welcome_message.*,"+ + Cols("super_cloud_issuance_add_group_welcome_message.content, super_cloud_issuance_add_group_welcome_message.state,"+ " super_cloud_issuance_user_robot_with_activate_group.id as activate_group_id,"+ " super_cloud_issuance_user_robot_with_activate_group.uid,"+ " super_cloud_issuance_user_robot_with_activate_group.name,"+ From 39b0bf040857c54bd0121ca9f9b4d146ac0d9028 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 4 Jul 2024 21:04:22 +0800 Subject: [PATCH 7/7] update --- ...per_cloud_issuance_keyword_reply_with_activate_group_dao.go | 1 - ...uper_cloud_issuance_keyword_reply_with_activate_group_db.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_dao.go b/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_dao.go index 7e2d4d8..6f1450d 100644 --- a/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_dao.go +++ b/src/dao/super_cloud_issuance_keyword_reply_with_activate_group_dao.go @@ -10,7 +10,6 @@ type SuperCloudIssuanceKeywordReplyWithActivateGroupDao interface { } type FindSuperCloudIssuanceKeywordReplyWithActivateGroupResponse struct { - Id int `json:"id" xorm:"not null pk autoincr comment('自增id') INT(11)"` ActivateGroupId int `json:"activate_group_id" xorm:"not null default 0 comment('绑定激活群id') INT(11)"` State int `json:"state" xorm:"not null default 1 comment('状态(1正常 2暂停)') TINYINT(1)"` IsFollowOfficial int `json:"is_follow_official"` diff --git a/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_db.go b/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_db.go index 73d1373..6eec82b 100644 --- a/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_db.go +++ b/src/implement/super_cloud_issuance_keyword_reply_with_activate_group_db.go @@ -32,7 +32,8 @@ func (s SuperCloudIssuanceKeywordReplyWithActivateGroupDb) FindSuperCloudIssuanc Join("LEFT", "super_cloud_issuance_keyword_reply_with_activate_group", "super_cloud_issuance_user_robot_with_activate_group.id = super_cloud_issuance_keyword_reply_with_activate_group.activate_group_id"). Where("super_cloud_issuance_user_robot_with_activate_group.uid = ?", uid). OrderBy("super_cloud_issuance_user_robot_with_activate_group.id DESC"). - Cols("super_cloud_issuance_keyword_reply_with_activate_group.*,"+ + Cols("super_cloud_issuance_keyword_reply_with_activate_group.state,super_cloud_issuance_keyword_reply_with_activate_group.is_follow_official,"+ + " super_cloud_issuance_user_robot_with_activate_group.id as activate_group_id,"+ " super_cloud_issuance_user_robot_with_activate_group.uid,"+ " super_cloud_issuance_user_robot_with_activate_group.name,"+ " super_cloud_issuance_user_robot_with_activate_group.robot_id,"+