|
|
@@ -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"` |
|
|
|
} |