diff --git a/autogen_model_field_mdbc.go b/autogen_model_field_mdbc.go deleted file mode 100644 index c787ee9..0000000 --- a/autogen_model_field_mdbc.go +++ /dev/null @@ -1,2411 +0,0 @@ -// Code generated by proto_parser. DO NOT EDIT. -// source: mdbc.proto - -package mdbc - -func (m *AtMsgItem) GetContentField() string { - return "content" -} - -func (m *AtMsgItem) GetNickNameField() string { - return "nick_name" -} - -func (m *AtMsgItem) GetSubTypeField() string { - return "sub_type" -} - -func (m *AtMsgItem) GetUserNameField() string { - return "user_name" -} - -func (m *ContentData) GetAtMsgItemField() string { - return "at_msg_item" -} - -func (m *ContentData) GetAtUserNameField() string { - return "at_user_name" -} - -func (m *ContentData) GetContentField() string { - return "content" -} - -func (m *ContentData) GetFileSizeField() string { - return "file_size" -} - -func (m *ContentData) GetFileUrlField() string { - return "file_url" -} - -func (m *ContentData) GetIsAtMyselfField() string { - return "is_at_myself" -} - -func (m *ContentData) GetRawContentField() string { - return "raw_content" -} - -func (m *ContentData) GetResourceDurationField() string { - return "resource_duration" -} - -func (m *ContentData) GetShareDescField() string { - return "share_desc" -} - -func (m *ContentData) GetShareNickNameField() string { - return "share_nick_name" -} - -func (m *ContentData) GetShareTitleField() string { - return "share_title" -} - -func (m *ContentData) GetShareUrlField() string { - return "share_url" -} - -func (m *ContentData) GetShareUserNameField() string { - return "share_user_name" -} - -func (m *ContentData) GetWxMsgTypeField() string { - return "wx_msg_type" -} - -func (m *ModelFriendInfo) GetAvatarUrlField() string { - return "avatar_url" -} - -func (m *ModelFriendInfo) GetCityField() string { - return "city" -} - -func (m *ModelFriendInfo) GetCountryField() string { - return "country" -} - -func (m *ModelFriendInfo) GetCreateTimeField() string { - return "create_time" -} - -func (m *ModelFriendInfo) GetIdField() string { - return "_id" -} - -func (m *ModelFriendInfo) GetNicknameField() string { - return "nick_name" -} - -func (m *ModelFriendInfo) GetPhoneField() string { - return "phone" -} - -func (m *ModelFriendInfo) GetProvinceField() string { - return "province" -} - -func (m *ModelFriendInfo) GetSexField() string { - return "sex" -} - -func (m *ModelFriendInfo) GetUpdateTimeField() string { - return "update_time" -} - -func (m *ModelFriendInfo) GetWechatAliasField() string { - return "wechat_alias" -} - -func (m *ModelFriendInfo) GetWechatIdField() string { - return "wechat_id" -} - -func (m *ModelGroupChat) GetAdminTypeField() string { - return "admin_type" -} - -func (m *ModelGroupChat) GetCreatedAtField() string { - return "created_at" -} - -func (m *ModelGroupChat) GetDeletedAtField() string { - return "deleted_at" -} - -func (m *ModelGroupChat) GetDisableInviteField() string { - return "disable_invite" -} - -func (m *ModelGroupChat) GetGroupAvatarUrlField() string { - return "group_avatar_url" -} - -func (m *ModelGroupChat) GetGroupNameField() string { - return "group_name" -} - -func (m *ModelGroupChat) GetGroupWxIdField() string { - return "group_wx_id" -} - -func (m *ModelGroupChat) GetHasBeenWatchField() string { - return "has_been_watch" -} - -func (m *ModelGroupChat) GetIdField() string { - return "_id" -} - -func (m *ModelGroupChat) GetInContactField() string { - return "in_contact" -} - -func (m *ModelGroupChat) GetIsDefaultGroupNameField() string { - return "is_default_group_name" -} - -func (m *ModelGroupChat) GetIsWatchField() string { - return "is_watch" -} - -func (m *ModelGroupChat) GetLastSyncAtField() string { - return "last_sync_at" -} - -func (m *ModelGroupChat) GetLastSyncMemberAtField() string { - return "last_sync_member_at" -} - -func (m *ModelGroupChat) GetMemberCountField() string { - return "member_count" -} - -func (m *ModelGroupChat) GetNoticeField() string { - return "notice" -} - -func (m *ModelGroupChat) GetOwnerNameField() string { - return "owner_name" -} - -func (m *ModelGroupChat) GetOwnerWxIdField() string { - return "owner_wx_id" -} - -func (m *ModelGroupChat) GetQrcodeUpdatedAtField() string { - return "qrcode_updated_at" -} - -func (m *ModelGroupChat) GetQrcodeUrlField() string { - return "qrcode_url" -} - -func (m *ModelGroupChat) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *ModelGroupChat) GetUpdatedAtField() string { - return "updated_at" -} - -func (m *ModelGroupChatMember) GetAdminTypeField() string { - return "admin_type" -} - -func (m *ModelGroupChatMember) GetCreatedAtField() string { - return "created_at" -} - -func (m *ModelGroupChatMember) GetDeletedAtField() string { - return "deleted_at" -} - -func (m *ModelGroupChatMember) GetGroupChatIdField() string { - return "group_chat_id" -} - -func (m *ModelGroupChatMember) GetIdField() string { - return "_id" -} - -func (m *ModelGroupChatMember) GetIsRobotField() string { - return "is_robot" -} - -func (m *ModelGroupChatMember) GetLastSyncAtField() string { - return "last_sync_at" -} - -func (m *ModelGroupChatMember) GetMemberAliasField() string { - return "member_alias" -} - -func (m *ModelGroupChatMember) GetMemberAvatarField() string { - return "member_avatar" -} - -func (m *ModelGroupChatMember) GetMemberNameField() string { - return "member_name" -} - -func (m *ModelGroupChatMember) GetMemberSexField() string { - return "member_sex" -} - -func (m *ModelGroupChatMember) GetMemberWxIdField() string { - return "member_wx_id" -} - -func (m *ModelGroupChatMember) GetUpdatedAtField() string { - return "updated_at" -} - -func (m *ModelRobot) GetAbilityLimitField() string { - return "ability_limit" -} - -func (m *ModelRobot) GetAliasNameField() string { - return "alias_name" -} - -func (m *ModelRobot) GetAndroidStatusField() string { - return "android_status" -} - -func (m *ModelRobot) GetAndroidWechatVersionField() string { - return "android_wechat_version" -} - -func (m *ModelRobot) GetAutoAddFriendField() string { - return "auto_add_friend" -} - -func (m *ModelRobot) GetAvatarUrlField() string { - return "avatar_url" -} - -func (m *ModelRobot) GetCityField() string { - return "city" -} - -func (m *ModelRobot) GetCountryField() string { - return "country" -} - -func (m *ModelRobot) GetCoverUrlField() string { - return "cover_url" -} - -func (m *ModelRobot) GetCreateTimeField() string { - return "create_time" -} - -func (m *ModelRobot) GetCrmAutoAddFriendField() string { - return "crm_auto_add_friend" -} - -func (m *ModelRobot) GetCrmShopIdField() string { - return "crm_shop_id" -} - -func (m *ModelRobot) GetDeleteTimeField() string { - return "delete_time" -} - -func (m *ModelRobot) GetGreetIdField() string { - return "greet_id" -} - -func (m *ModelRobot) GetIdField() string { - return "_id" -} - -func (m *ModelRobot) GetInitFriendField() string { - return "init_friend" -} - -func (m *ModelRobot) GetLastAndroidLoginAtField() string { - return "last_android_login_at" -} - -func (m *ModelRobot) GetLastAndroidLogoutAtField() string { - return "last_android_logout_at" -} - -func (m *ModelRobot) GetLastCityField() string { - return "last_city" -} - -func (m *ModelRobot) GetLastLogOutTimeField() string { - return "last_log_out_time" -} - -func (m *ModelRobot) GetLastLoginTimeField() string { - return "last_login_time" -} - -func (m *ModelRobot) GetLastPcLoginAtField() string { - return "last_pc_login_at" -} - -func (m *ModelRobot) GetLastPcLogoutAtField() string { - return "last_pc_logout_at" -} - -func (m *ModelRobot) GetLastRegionCodeField() string { - return "last_region_code" -} - -func (m *ModelRobot) GetLastRequireAddFriendTimeField() string { - return "last_require_add_friend_time" -} - -func (m *ModelRobot) GetLimitedField() string { - return "limited" -} - -func (m *ModelRobot) GetLogAndOutTimeField() string { - return "log_and_out_time" -} - -func (m *ModelRobot) GetMobileField() string { - return "mobile" -} - -func (m *ModelRobot) GetMomentPrivacyTypeField() string { - return "moment_privacy_type" -} - -func (m *ModelRobot) GetNickNameField() string { - return "nick_name" -} - -func (m *ModelRobot) GetNowFriendField() string { - return "now_friend" -} - -func (m *ModelRobot) GetOpenForStrangerField() string { - return "open_for_stranger" -} - -func (m *ModelRobot) GetProvinceField() string { - return "province" -} - -func (m *ModelRobot) GetQrcodeField() string { - return "qrcode" -} - -func (m *ModelRobot) GetRiskControlGroupField() string { - return "risk_control_group" -} - -func (m *ModelRobot) GetRiskControlTaskField() string { - return "risk_control_task" -} - -func (m *ModelRobot) GetSexField() string { - return "sex" -} - -func (m *ModelRobot) GetSignatureField() string { - return "signature" -} - -func (m *ModelRobot) GetStatusField() string { - return "status" -} - -func (m *ModelRobot) GetTodayRequireTimeField() string { - return "today_require_time" -} - -func (m *ModelRobot) GetUpdateTimeField() string { - return "update_time" -} - -func (m *ModelRobot) GetUserIdField() string { - return "user_id" -} - -func (m *ModelRobot) GetWechatAliasField() string { - return "wechat_alias" -} - -func (m *ModelRobot) GetWechatIdField() string { - return "wechat_id" -} - -func (m *ModelRobotFriend) GetAddAtField() string { - return "add_at" -} - -func (m *ModelRobotFriend) GetCreateTimeField() string { - return "create_time" -} - -func (m *ModelRobotFriend) GetCrmPhoneField() string { - return "crm_phone" -} - -func (m *ModelRobotFriend) GetDeleteTimeField() string { - return "delete_time" -} - -func (m *ModelRobotFriend) GetDeletedField() string { - return "deleted" -} - -func (m *ModelRobotFriend) GetIdField() string { - return "_id" -} - -func (m *ModelRobotFriend) GetOfflineAddField() string { - return "offline_add" -} - -func (m *ModelRobotFriend) GetPinyinField() string { - return "pinyin" -} - -func (m *ModelRobotFriend) GetPinyinHeadField() string { - return "pinyin_head" -} - -func (m *ModelRobotFriend) GetRemarkNameField() string { - return "remark_name" -} - -func (m *ModelRobotFriend) GetRobotWechatIdField() string { - return "robot_wechat_id" -} - -func (m *ModelRobotFriend) GetUpdateTimeField() string { - return "update_time" -} - -func (m *ModelRobotFriend) GetUserWechatIdField() string { - return "user_wechat_id" -} - -func (m *ModelSchedTask) GetCreatedAtField() string { - return "created_at" -} - -func (m *ModelSchedTask) GetExpiredAtField() string { - return "expired_at" -} - -func (m *ModelSchedTask) GetIdField() string { - return "_id" -} - -func (m *ModelSchedTask) GetReqIdField() string { - return "req_id" -} - -func (m *ModelSchedTask) GetReqJsonField() string { - return "req_json" -} - -func (m *ModelSchedTask) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *ModelSchedTask) GetRspJsonField() string { - return "rsp_json" -} - -func (m *ModelSchedTask) GetTaskStateField() string { - return "task_state" -} - -func (m *ModelSchedTask) GetTaskTypeField() string { - return "task_type" -} - -func (m *ModelSchedTask) GetUpdatedAtField() string { - return "updated_at" -} - -func (m *ModelTbGroupMsgSession) GetAllField() string { - return "all" -} - -func (m *ModelTbGroupMsgSession) GetIdField() string { - return "_id" -} - -func (m *ModelTbGroupMsgSession) GetLastFriendMsgAtField() string { - return "last_friend_msg_at" -} - -func (m *ModelTbGroupMsgSession) GetLastFriendMsgIdField() string { - return "last_friend_msg_id" -} - -func (m *ModelTbGroupMsgSession) GetLastMemberWxIdField() string { - return "last_member_wx_id" -} - -func (m *ModelTbGroupMsgSession) GetLastMsgAtField() string { - return "last_msg_at" -} - -func (m *ModelTbGroupMsgSession) GetLastMsgIdField() string { - return "last_msg_id" -} - -func (m *ModelTbGroupMsgSession) GetReadField() string { - return "read" -} - -func (m *ModelTbGroupMsgSession) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *ModelTbGroupMsgSession) GetUnreadField() string { - return "unread" -} - -func (m *ModelTbGroupMsgSession) GetUserWxIdField() string { - return "user_wx_id" -} - -func (m *ModelTbPrivateMsgSession) GetAllField() string { - return "all" -} - -func (m *ModelTbPrivateMsgSession) GetIdField() string { - return "_id" -} - -func (m *ModelTbPrivateMsgSession) GetLastFriendMsgAtField() string { - return "last_friend_msg_at" -} - -func (m *ModelTbPrivateMsgSession) GetLastFriendMsgIdField() string { - return "last_friend_msg_id" -} - -func (m *ModelTbPrivateMsgSession) GetLastMsgAtField() string { - return "last_msg_at" -} - -func (m *ModelTbPrivateMsgSession) GetLastMsgIdField() string { - return "last_msg_id" -} - -func (m *ModelTbPrivateMsgSession) GetReadField() string { - return "read" -} - -func (m *ModelTbPrivateMsgSession) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *ModelTbPrivateMsgSession) GetUnreadField() string { - return "unread" -} - -func (m *ModelTbPrivateMsgSession) GetUserWxIdField() string { - return "user_wx_id" -} - -func (m *ModelTbRobotGroupMsg) GetBindIdField() string { - return "bind_id" -} - -func (m *ModelTbRobotGroupMsg) GetCallBackAtField() string { - return "call_back_at" -} - -func (m *ModelTbRobotGroupMsg) GetContentDataField() string { - return "content_data" -} - -func (m *ModelTbRobotGroupMsg) GetContentReadField() string { - return "content_read" -} - -func (m *ModelTbRobotGroupMsg) GetCreatedAtField() string { - return "created_at" -} - -func (m *ModelTbRobotGroupMsg) GetCursorField() string { - return "cursor" -} - -func (m *ModelTbRobotGroupMsg) GetDirectField() string { - return "direct" -} - -func (m *ModelTbRobotGroupMsg) GetExpireAtField() string { - return "expire_at" -} - -func (m *ModelTbRobotGroupMsg) GetFailReasonField() string { - return "fail_reason" -} - -func (m *ModelTbRobotGroupMsg) GetIdField() string { - return "_id" -} - -func (m *ModelTbRobotGroupMsg) GetMsgIdField() string { - return "msg_id" -} - -func (m *ModelTbRobotGroupMsg) GetMsgTypeField() string { - return "msg_type" -} - -func (m *ModelTbRobotGroupMsg) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *ModelTbRobotGroupMsg) GetSendAtField() string { - return "send_at" -} - -func (m *ModelTbRobotGroupMsg) GetSendErrorCodeField() string { - return "send_error_code" -} - -func (m *ModelTbRobotGroupMsg) GetSendStatusField() string { - return "send_status" -} - -func (m *ModelTbRobotGroupMsg) GetSenderWxIdField() string { - return "sender_wx_id" -} - -func (m *ModelTbRobotGroupMsg) GetUpdatedAtField() string { - return "updated_at" -} - -func (m *ModelTbRobotGroupMsg) GetUserWxIdField() string { - return "user_wx_id" -} - -func (m *ModelTbRobotPrivateMsg) GetBindIdField() string { - return "bind_id" -} - -func (m *ModelTbRobotPrivateMsg) GetCallBackAtField() string { - return "call_back_at" -} - -func (m *ModelTbRobotPrivateMsg) GetContentDataField() string { - return "content_data" -} - -func (m *ModelTbRobotPrivateMsg) GetContentReadField() string { - return "content_read" -} - -func (m *ModelTbRobotPrivateMsg) GetCreatedAtField() string { - return "created_at" -} - -func (m *ModelTbRobotPrivateMsg) GetCursorField() string { - return "cursor" -} - -func (m *ModelTbRobotPrivateMsg) GetDirectField() string { - return "direct" -} - -func (m *ModelTbRobotPrivateMsg) GetExpireAtField() string { - return "expire_at" -} - -func (m *ModelTbRobotPrivateMsg) GetFailReasonField() string { - return "fail_reason" -} - -func (m *ModelTbRobotPrivateMsg) GetIdField() string { - return "_id" -} - -func (m *ModelTbRobotPrivateMsg) GetMsgIdField() string { - return "msg_id" -} - -func (m *ModelTbRobotPrivateMsg) GetMsgTypeField() string { - return "msg_type" -} - -func (m *ModelTbRobotPrivateMsg) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *ModelTbRobotPrivateMsg) GetSendAtField() string { - return "send_at" -} - -func (m *ModelTbRobotPrivateMsg) GetSendErrorCodeField() string { - return "send_error_code" -} - -func (m *ModelTbRobotPrivateMsg) GetSendStatusField() string { - return "send_status" -} - -func (m *ModelTbRobotPrivateMsg) GetUpdatedAtField() string { - return "updated_at" -} - -func (m *ModelTbRobotPrivateMsg) GetUserWxIdField() string { - return "user_wx_id" -} - -func (m *ModelWsConnectRecord) GetBindIdField() string { - return "bind_id" -} - -func (m *ModelWsConnectRecord) GetCreatedAtField() string { - return "created_at" -} - -func (m *ModelWsConnectRecord) GetExpiredAtField() string { - return "expired_at" -} - -func (m *ModelWsConnectRecord) GetIdField() string { - return "_id" -} - -func (m *ModelWsConnectRecord) GetLoginAtField() string { - return "login_at" -} - -func (m *ModelWsConnectRecord) GetLogoutAtField() string { - return "logout_at" -} - -func (m *ModelWsConnectRecord) GetUserIdField() string { - return "user_id" -} - - -func (m *AtMsgItem) GetContentFieldComment() string { - return "文本内容" -} - -func (m *AtMsgItem) GetNickNameFieldComment() string { - return "@的昵称" -} - -func (m *AtMsgItem) GetSubTypeFieldComment() string { - return "0:文本内容,1:@某人" -} - -func (m *AtMsgItem) GetUserNameFieldComment() string { - return "@的用户(wx_id)" -} - -func (m *ContentData) GetAtMsgItemFieldComment() string { - return "发送群@部分人消息的数据" -} - -func (m *ContentData) GetAtUserNameFieldComment() string { - return "群聊at消息" -} - -func (m *ContentData) GetContentFieldComment() string { - return "1文本的内容;2 语音的url(amr格式);6小程序的xml;" -} - -func (m *ContentData) GetFileSizeFieldComment() string { - return "文件大小KB单位" -} - -func (m *ContentData) GetFileUrlFieldComment() string { - return "3图片的url;4视频的Url;5链接的分享图;8表情的url(gif);9文件的url;" -} - -func (m *ContentData) GetIsAtMyselfFieldComment() string { - return "是否有at我自己 单独一个字段 方便维护和查询" -} - -func (m *ContentData) GetRawContentFieldComment() string { - return "元始的xml数据 做数据转发时用;" -} - -func (m *ContentData) GetResourceDurationFieldComment() string { - return "媒体时长 统一单位s" -} - -func (m *ContentData) GetShareDescFieldComment() string { - return "5链接的描述;" -} - -func (m *ContentData) GetShareNickNameFieldComment() string { - return "7名片的被分享(名片)的昵称;" -} - -func (m *ContentData) GetShareTitleFieldComment() string { - return "5链接的标题;" -} - -func (m *ContentData) GetShareUrlFieldComment() string { - return "5链接的URL;" -} - -func (m *ContentData) GetShareUserNameFieldComment() string { - return "7名片的被分享(名片)好友id;" -} - -func (m *ContentData) GetWxMsgTypeFieldComment() string { - return "消息类型: 1 文本;2 语音;3 图片;4 视频;5 链接;6 小程序;7" -} - -func (m *ModelFriendInfo) GetAvatarUrlFieldComment() string { - return "用户头像" -} - -func (m *ModelFriendInfo) GetCityFieldComment() string { - return "城市" -} - -func (m *ModelFriendInfo) GetCountryFieldComment() string { - return "国家" -} - -func (m *ModelFriendInfo) GetCreateTimeFieldComment() string { - return "创建时间" -} - -func (m *ModelFriendInfo) GetIdFieldComment() string { - return "主键ID wxid md5" -} - -func (m *ModelFriendInfo) GetNicknameFieldComment() string { - return "用户暱称" -} - -func (m *ModelFriendInfo) GetPhoneFieldComment() string { - return "手机号码" -} - -func (m *ModelFriendInfo) GetProvinceFieldComment() string { - return "省份" -} - -func (m *ModelFriendInfo) GetSexFieldComment() string { - return "0未知 1男 2女" -} - -func (m *ModelFriendInfo) GetUpdateTimeFieldComment() string { - return "更新时间" -} - -func (m *ModelFriendInfo) GetWechatAliasFieldComment() string { - return "用户微信号" -} - -func (m *ModelFriendInfo) GetWechatIdFieldComment() string { - return "用户微信ID" -} - -func (m *ModelGroupChat) GetAdminTypeFieldComment() string { - return "机器人权限类型" -} - -func (m *ModelGroupChat) GetCreatedAtFieldComment() string { - return "创建时间" -} - -func (m *ModelGroupChat) GetDeletedAtFieldComment() string { - return "删除时间【记: 此表正常情况下 只进行软删除】非零 历史群 0正常群" -} - -func (m *ModelGroupChat) GetDisableInviteFieldComment() string { - return "是否开启了群聊邀请确认 true 开启了 false 关闭了" -} - -func (m *ModelGroupChat) GetGroupAvatarUrlFieldComment() string { - return "群头像" -} - -func (m *ModelGroupChat) GetGroupNameFieldComment() string { - return "群名称" -} - -func (m *ModelGroupChat) GetGroupWxIdFieldComment() string { - return "群id" -} - -func (m *ModelGroupChat) GetHasBeenWatchFieldComment() string { - return "以前有关注过" -} - -func (m *ModelGroupChat) GetIdFieldComment() string { - return "主键ID" -} - -func (m *ModelGroupChat) GetInContactFieldComment() string { - return "是否在通讯录中" -} - -func (m *ModelGroupChat) GetIsDefaultGroupNameFieldComment() string { - return "是否是默认的群名称" -} - -func (m *ModelGroupChat) GetIsWatchFieldComment() string { - return "是否关注群" -} - -func (m *ModelGroupChat) GetLastSyncAtFieldComment() string { - return "最后更新群信息时间 【通过这里 指定规则 去拉群基本信息】" -} - -func (m *ModelGroupChat) GetLastSyncMemberAtFieldComment() string { - return "最后更新群成员时间 【通过这里 指定规则 去拉群成员信息】" -} - -func (m *ModelGroupChat) GetMemberCountFieldComment() string { - return "群成员数量" -} - -func (m *ModelGroupChat) GetNoticeFieldComment() string { - return "群公告" -} - -func (m *ModelGroupChat) GetOwnerNameFieldComment() string { - return "群主名称" -} - -func (m *ModelGroupChat) GetOwnerWxIdFieldComment() string { - return "群主id" -} - -func (m *ModelGroupChat) GetQrcodeUpdatedAtFieldComment() string { - return "群聊二维码更新时间" -} - -func (m *ModelGroupChat) GetQrcodeUrlFieldComment() string { - return "群聊二维码" -} - -func (m *ModelGroupChat) GetRobotWxIdFieldComment() string { - return "机器人id" -} - -func (m *ModelGroupChat) GetUpdatedAtFieldComment() string { - return "更新时间" -} - -func (m *ModelGroupChatMember) GetAdminTypeFieldComment() string { - return "权限类型 群主 管理员 普通成员" -} - -func (m *ModelGroupChatMember) GetCreatedAtFieldComment() string { - return "创建时间" -} - -func (m *ModelGroupChatMember) GetDeletedAtFieldComment() string { - return "删除时间 这个表一般直接硬删除" -} - -func (m *ModelGroupChatMember) GetGroupChatIdFieldComment() string { - return "群 ModelGroupChat 的ID" -} - -func (m *ModelGroupChatMember) GetIdFieldComment() string { - return "id" -} - -func (m *ModelGroupChatMember) GetIsRobotFieldComment() string { - return "是否是机器人" -} - -func (m *ModelGroupChatMember) GetLastSyncAtFieldComment() string { - return "该群该成员 最后更新时间" -} - -func (m *ModelGroupChatMember) GetMemberAliasFieldComment() string { - return "群昵称" -} - -func (m *ModelGroupChatMember) GetMemberAvatarFieldComment() string { - return "群成员头像" -} - -func (m *ModelGroupChatMember) GetMemberNameFieldComment() string { - return "群成员名称" -} - -func (m *ModelGroupChatMember) GetMemberSexFieldComment() string { - return "性别" -} - -func (m *ModelGroupChatMember) GetMemberWxIdFieldComment() string { - return "群成员微信id" -} - -func (m *ModelGroupChatMember) GetUpdatedAtFieldComment() string { - return "更新时间" -} - -func (m *ModelRobot) GetAbilityLimitFieldComment() string { - return "机器人是否功能受限" -} - -func (m *ModelRobot) GetAliasNameFieldComment() string { - return "微信号" -} - -func (m *ModelRobot) GetAndroidStatusFieldComment() string { - return "机器人Android是否在线 10在线 11离线" -} - -func (m *ModelRobot) GetAndroidWechatVersionFieldComment() string { - return "微信版本" -} - -func (m *ModelRobot) GetAutoAddFriendFieldComment() string { - return "机器人是否自动通过好友请求 0否 1是" -} - -func (m *ModelRobot) GetAvatarUrlFieldComment() string { - return "机器人头像" -} - -func (m *ModelRobot) GetCityFieldComment() string { - return "城市" -} - -func (m *ModelRobot) GetCountryFieldComment() string { - return "国家" -} - -func (m *ModelRobot) GetCoverUrlFieldComment() string { - return "朋友圈封面url" -} - -func (m *ModelRobot) GetCreateTimeFieldComment() string { - return "创建时间" -} - -func (m *ModelRobot) GetCrmAutoAddFriendFieldComment() string { - return "crm系统自动通过好友 1自动通过 0不自动通过" -} - -func (m *ModelRobot) GetCrmShopIdFieldComment() string { - return "机器人所属商户id" -} - -func (m *ModelRobot) GetDeleteTimeFieldComment() string { - return "删除时间" -} - -func (m *ModelRobot) GetGreetIdFieldComment() string { - return "打招呼模板id" -} - -func (m *ModelRobot) GetIdFieldComment() string { - return "主键ID wxid md5" -} - -func (m *ModelRobot) GetInitFriendFieldComment() string { - return "机器人初始好友人数" -} - -func (m *ModelRobot) GetLastAndroidLoginAtFieldComment() string { - return "最近安卓登录时间" -} - -func (m *ModelRobot) GetLastAndroidLogoutAtFieldComment() string { - return "最近安卓登出时间" -} - -func (m *ModelRobot) GetLastCityFieldComment() string { - return "最后登录的城市名称" -} - -func (m *ModelRobot) GetLastLogOutTimeFieldComment() string { - return "最后登出时间" -} - -func (m *ModelRobot) GetLastLoginTimeFieldComment() string { - return "最后登录时间" -} - -func (m *ModelRobot) GetLastPcLoginAtFieldComment() string { - return "最近PC登录时间" -} - -func (m *ModelRobot) GetLastPcLogoutAtFieldComment() string { - return "最近PC登出时间" -} - -func (m *ModelRobot) GetLastRegionCodeFieldComment() string { - return "最后登录的扫码设备的地区编码" -} - -func (m *ModelRobot) GetLastRequireAddFriendTimeFieldComment() string { - return "上一次请求添加好友的时间" -} - -func (m *ModelRobot) GetLimitedFieldComment() string { - return "机器人是否被封号 0未封号 1已封号" -} - -func (m *ModelRobot) GetLogAndOutTimeFieldComment() string { - return "登入或者登出都要记录一下" -} - -func (m *ModelRobot) GetMobileFieldComment() string { - return "手机号码" -} - -func (m *ModelRobot) GetMomentPrivacyTypeFieldComment() string { - return "朋友圈隐私选项类型" -} - -func (m *ModelRobot) GetNickNameFieldComment() string { - return "机器人暱称" -} - -func (m *ModelRobot) GetNowFriendFieldComment() string { - return "机器人当前好友数量" -} - -func (m *ModelRobot) GetOpenForStrangerFieldComment() string { - return "是否允许陌生人查看十条朋友圈" -} - -func (m *ModelRobot) GetProvinceFieldComment() string { - return "省份" -} - -func (m *ModelRobot) GetQrcodeFieldComment() string { - return "机器人二维码" -} - -func (m *ModelRobot) GetRiskControlGroupFieldComment() string { - return "风控分组" -} - -func (m *ModelRobot) GetRiskControlTaskFieldComment() string { - return "风控任务 0是全部,1是回复,2是发消息,3是看朋友圈,4是发朋友圈,5是点赞,6是评论 7是群聊 可组合,如:1,2,3" -} - -func (m *ModelRobot) GetSexFieldComment() string { - return "性别 0 未知 1 男生 2 女生" -} - -func (m *ModelRobot) GetSignatureFieldComment() string { - return "个性签名" -} - -func (m *ModelRobot) GetStatusFieldComment() string { - return "机器人PC是否在线 10在线 11离线 (兼容之前的pc登录流程和其他接口,这个登录状态不变,补多一个字段代表安卓登录状态)" -} - -func (m *ModelRobot) GetTodayRequireTimeFieldComment() string { - return "当天请求次数" -} - -func (m *ModelRobot) GetUpdateTimeFieldComment() string { - return "更新时间" -} - -func (m *ModelRobot) GetUserIdFieldComment() string { - return "机器人所属用户id" -} - -func (m *ModelRobot) GetWechatAliasFieldComment() string { - return "微信ID (用户自己定义的微信号)" -} - -func (m *ModelRobot) GetWechatIdFieldComment() string { - return "微信唯一ID (wxidxxxxxx)" -} - -func (m *ModelRobotFriend) GetAddAtFieldComment() string { - return "添加好友时间只有主动添加好友才有" -} - -func (m *ModelRobotFriend) GetCreateTimeFieldComment() string { - return "创建时间:入库时间" -} - -func (m *ModelRobotFriend) GetCrmPhoneFieldComment() string { - return "CRM自己设置的好友手机号,不同于微信手机号" -} - -func (m *ModelRobotFriend) GetDeleteTimeFieldComment() string { - return "删除好友的时间" -} - -func (m *ModelRobotFriend) GetDeletedFieldComment() string { - return "是否被删除 0双方未删除 1被好友删除 2删除了好友 3互相删除" -} - -func (m *ModelRobotFriend) GetIdFieldComment() string { - return "主键ID 机器人id+朋友id md5" -} - -func (m *ModelRobotFriend) GetOfflineAddFieldComment() string { - return "是否为离线添加" -} - -func (m *ModelRobotFriend) GetPinyinFieldComment() string { - return "用户备注或者暱称的拼音" -} - -func (m *ModelRobotFriend) GetPinyinHeadFieldComment() string { - return "拼音首字母" -} - -func (m *ModelRobotFriend) GetRemarkNameFieldComment() string { - return "微信好友备注名称" -} - -func (m *ModelRobotFriend) GetRobotWechatIdFieldComment() string { - return "机器人编号:微信ID" -} - -func (m *ModelRobotFriend) GetUpdateTimeFieldComment() string { - return "更新时间" -} - -func (m *ModelRobotFriend) GetUserWechatIdFieldComment() string { - return "用户微信ID," -} - -func (m *ModelSchedTask) GetCreatedAtFieldComment() string { - return "创建时间" -} - -func (m *ModelSchedTask) GetExpiredAtFieldComment() string { - return "过期时间" -} - -func (m *ModelSchedTask) GetIdFieldComment() string { - return "任务id" -} - -func (m *ModelSchedTask) GetReqIdFieldComment() string { - return "便于查询该任务 指定的id[作用:有些情况 无法直接通过id来查询该记录]" -} - -func (m *ModelSchedTask) GetReqJsonFieldComment() string { - return "请求内容" -} - -func (m *ModelSchedTask) GetRobotWxIdFieldComment() string { - return "机器人id" -} - -func (m *ModelSchedTask) GetRspJsonFieldComment() string { - return "完成后的内容 [成功或者失败的返回]" -} - -func (m *ModelSchedTask) GetTaskStateFieldComment() string { - return "执行状态 TaskState" -} - -func (m *ModelSchedTask) GetTaskTypeFieldComment() string { - return "任务类型 自定义的名称 用来区别是哪个模块发起的任务" -} - -func (m *ModelSchedTask) GetUpdatedAtFieldComment() string { - return "更新时间" -} - -func (m *ModelTbGroupMsgSession) GetAllFieldComment() string { - return "消息最大游标(消息总数:只算有效的消息)" -} - -func (m *ModelTbGroupMsgSession) GetIdFieldComment() string { - return "会话ID (md5(机器人id+好友id))" -} - -func (m *ModelTbGroupMsgSession) GetLastFriendMsgAtFieldComment() string { - return "接受到最后一条好友消息时间" -} - -func (m *ModelTbGroupMsgSession) GetLastFriendMsgIdFieldComment() string { - return "接收的最后一条好友消息id" -} - -func (m *ModelTbGroupMsgSession) GetLastMemberWxIdFieldComment() string { - return "最后发送消息的群成员id" -} - -func (m *ModelTbGroupMsgSession) GetLastMsgAtFieldComment() string { - return "最后一条消息时间" -} - -func (m *ModelTbGroupMsgSession) GetLastMsgIdFieldComment() string { - return "最后一条消息id" -} - -func (m *ModelTbGroupMsgSession) GetReadFieldComment() string { - return "已读游标" -} - -func (m *ModelTbGroupMsgSession) GetRobotWxIdFieldComment() string { - return "机器人id" -} - -func (m *ModelTbGroupMsgSession) GetUnreadFieldComment() string { - return "未读消息游标" -} - -func (m *ModelTbGroupMsgSession) GetUserWxIdFieldComment() string { - return "群微信id" -} - -func (m *ModelTbPrivateMsgSession) GetAllFieldComment() string { - return "消息最大游标(消息总数:只算有效的消息)" -} - -func (m *ModelTbPrivateMsgSession) GetIdFieldComment() string { - return "会话ID (md5(机器人id+好友id))" -} - -func (m *ModelTbPrivateMsgSession) GetLastFriendMsgAtFieldComment() string { - return "接受到最后一条好友消息时间" -} - -func (m *ModelTbPrivateMsgSession) GetLastFriendMsgIdFieldComment() string { - return "接收的最后一条好友消息id" -} - -func (m *ModelTbPrivateMsgSession) GetLastMsgAtFieldComment() string { - return "最后一条消息时间" -} - -func (m *ModelTbPrivateMsgSession) GetLastMsgIdFieldComment() string { - return "最后一条消息id" -} - -func (m *ModelTbPrivateMsgSession) GetReadFieldComment() string { - return "已读游标" -} - -func (m *ModelTbPrivateMsgSession) GetRobotWxIdFieldComment() string { - return "机器人id" -} - -func (m *ModelTbPrivateMsgSession) GetUnreadFieldComment() string { - return "未读消息游标" -} - -func (m *ModelTbPrivateMsgSession) GetUserWxIdFieldComment() string { - return "好友微信id" -} - -func (m *ModelTbRobotGroupMsg) GetBindIdFieldComment() string { - return "前端消息id" -} - -func (m *ModelTbRobotGroupMsg) GetCallBackAtFieldComment() string { - return "消息返回时间" -} - -func (m *ModelTbRobotGroupMsg) GetContentDataFieldComment() string { - return "消息内容" -} - -func (m *ModelTbRobotGroupMsg) GetContentReadFieldComment() string { - return "是否内容被浏览(像语音之类的,需要浏览)" -} - -func (m *ModelTbRobotGroupMsg) GetCreatedAtFieldComment() string { - return "创建时间" -} - -func (m *ModelTbRobotGroupMsg) GetCursorFieldComment() string { - return "消息游标(对应session的all)" -} - -func (m *ModelTbRobotGroupMsg) GetDirectFieldComment() string { - return "用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送" -} - -func (m *ModelTbRobotGroupMsg) GetExpireAtFieldComment() string { - return "失效时间(用于消息的失效)" -} - -func (m *ModelTbRobotGroupMsg) GetFailReasonFieldComment() string { - return "失败原因" -} - -func (m *ModelTbRobotGroupMsg) GetIdFieldComment() string { - return "主键ID" -} - -func (m *ModelTbRobotGroupMsg) GetMsgIdFieldComment() string { - return "服务端自己生成一个消息id,来对应客户端的发送结果id" -} - -func (m *ModelTbRobotGroupMsg) GetMsgTypeFieldComment() string { - return "消息类型" -} - -func (m *ModelTbRobotGroupMsg) GetRobotWxIdFieldComment() string { - return "机器人id" -} - -func (m *ModelTbRobotGroupMsg) GetSendAtFieldComment() string { - return "发送时间(消息实际生效时间)" -} - -func (m *ModelTbRobotGroupMsg) GetSendErrorCodeFieldComment() string { - return "发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3" -} - -func (m *ModelTbRobotGroupMsg) GetSendStatusFieldComment() string { - return "发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3" -} - -func (m *ModelTbRobotGroupMsg) GetSenderWxIdFieldComment() string { - return "发送者id" -} - -func (m *ModelTbRobotGroupMsg) GetUpdatedAtFieldComment() string { - return "更新时间" -} - -func (m *ModelTbRobotGroupMsg) GetUserWxIdFieldComment() string { - return "群聊id" -} - -func (m *ModelTbRobotPrivateMsg) GetBindIdFieldComment() string { - return "前端消息id" -} - -func (m *ModelTbRobotPrivateMsg) GetCallBackAtFieldComment() string { - return "消息返回时间" -} - -func (m *ModelTbRobotPrivateMsg) GetContentDataFieldComment() string { - return "消息内容" -} - -func (m *ModelTbRobotPrivateMsg) GetContentReadFieldComment() string { - return "是否内容被浏览(像语音之类的,需要浏览)" -} - -func (m *ModelTbRobotPrivateMsg) GetCreatedAtFieldComment() string { - return "创建时间" -} - -func (m *ModelTbRobotPrivateMsg) GetCursorFieldComment() string { - return "消息游标(对应session的all)" -} - -func (m *ModelTbRobotPrivateMsg) GetDirectFieldComment() string { - return "用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送" -} - -func (m *ModelTbRobotPrivateMsg) GetExpireAtFieldComment() string { - return "失效时间(用于消息的失效)" -} - -func (m *ModelTbRobotPrivateMsg) GetFailReasonFieldComment() string { - return "失败原因" -} - -func (m *ModelTbRobotPrivateMsg) GetIdFieldComment() string { - return "主键ID" -} - -func (m *ModelTbRobotPrivateMsg) GetMsgIdFieldComment() string { - return "服务端自己生成一个消息id,来对应客户端的发送结果id" -} - -func (m *ModelTbRobotPrivateMsg) GetMsgTypeFieldComment() string { - return "消息类型" -} - -func (m *ModelTbRobotPrivateMsg) GetRobotWxIdFieldComment() string { - return "机器人id" -} - -func (m *ModelTbRobotPrivateMsg) GetSendAtFieldComment() string { - return "发送时间(消息实际生效时间)" -} - -func (m *ModelTbRobotPrivateMsg) GetSendErrorCodeFieldComment() string { - return "发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3" -} - -func (m *ModelTbRobotPrivateMsg) GetSendStatusFieldComment() string { - return "发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3" -} - -func (m *ModelTbRobotPrivateMsg) GetUpdatedAtFieldComment() string { - return "更新时间" -} - -func (m *ModelTbRobotPrivateMsg) GetUserWxIdFieldComment() string { - return "好友id" -} - -func (m *ModelWsConnectRecord) GetBindIdFieldComment() string { - return "该ws绑定的id" -} - -func (m *ModelWsConnectRecord) GetCreatedAtFieldComment() string { - return "记录创建时间" -} - -func (m *ModelWsConnectRecord) GetExpiredAtFieldComment() string { - return "过期时间" -} - -func (m *ModelWsConnectRecord) GetIdFieldComment() string { - return "主键ID wxid md5" -} - -func (m *ModelWsConnectRecord) GetLoginAtFieldComment() string { - return "登录时间" -} - -func (m *ModelWsConnectRecord) GetLogoutAtFieldComment() string { - return "登出时间" -} - -func (m *ModelWsConnectRecord) GetUserIdFieldComment() string { - return "机器人所属用户id" -} - - - -type getAtMsgItemField struct {} -var AtMsgItemField getAtMsgItemField - -func (m *getAtMsgItemField) GetContentField() string { - return "content" -} - -func (m *getAtMsgItemField) GetNickNameField() string { - return "nick_name" -} - -func (m *getAtMsgItemField) GetSubTypeField() string { - return "sub_type" -} - -func (m *getAtMsgItemField) GetUserNameField() string { - return "user_name" -} - -type getContentDataField struct {} -var ContentDataField getContentDataField - -func (m *getContentDataField) GetAtMsgItemField() string { - return "at_msg_item" -} - -func (m *getContentDataField) GetAtUserNameField() string { - return "at_user_name" -} - -func (m *getContentDataField) GetContentField() string { - return "content" -} - -func (m *getContentDataField) GetFileSizeField() string { - return "file_size" -} - -func (m *getContentDataField) GetFileUrlField() string { - return "file_url" -} - -func (m *getContentDataField) GetIsAtMyselfField() string { - return "is_at_myself" -} - -func (m *getContentDataField) GetRawContentField() string { - return "raw_content" -} - -func (m *getContentDataField) GetResourceDurationField() string { - return "resource_duration" -} - -func (m *getContentDataField) GetShareDescField() string { - return "share_desc" -} - -func (m *getContentDataField) GetShareNickNameField() string { - return "share_nick_name" -} - -func (m *getContentDataField) GetShareTitleField() string { - return "share_title" -} - -func (m *getContentDataField) GetShareUrlField() string { - return "share_url" -} - -func (m *getContentDataField) GetShareUserNameField() string { - return "share_user_name" -} - -func (m *getContentDataField) GetWxMsgTypeField() string { - return "wx_msg_type" -} - -type getModelFriendInfoField struct {} -var ModelFriendInfoField getModelFriendInfoField - -func (m *getModelFriendInfoField) GetAvatarUrlField() string { - return "avatar_url" -} - -func (m *getModelFriendInfoField) GetCityField() string { - return "city" -} - -func (m *getModelFriendInfoField) GetCountryField() string { - return "country" -} - -func (m *getModelFriendInfoField) GetCreateTimeField() string { - return "create_time" -} - -func (m *getModelFriendInfoField) GetIdField() string { - return "_id" -} - -func (m *getModelFriendInfoField) GetNicknameField() string { - return "nick_name" -} - -func (m *getModelFriendInfoField) GetPhoneField() string { - return "phone" -} - -func (m *getModelFriendInfoField) GetProvinceField() string { - return "province" -} - -func (m *getModelFriendInfoField) GetSexField() string { - return "sex" -} - -func (m *getModelFriendInfoField) GetUpdateTimeField() string { - return "update_time" -} - -func (m *getModelFriendInfoField) GetWechatAliasField() string { - return "wechat_alias" -} - -func (m *getModelFriendInfoField) GetWechatIdField() string { - return "wechat_id" -} - -type getModelGroupChatField struct {} -var ModelGroupChatField getModelGroupChatField - -func (m *getModelGroupChatField) GetAdminTypeField() string { - return "admin_type" -} - -func (m *getModelGroupChatField) GetCreatedAtField() string { - return "created_at" -} - -func (m *getModelGroupChatField) GetDeletedAtField() string { - return "deleted_at" -} - -func (m *getModelGroupChatField) GetDisableInviteField() string { - return "disable_invite" -} - -func (m *getModelGroupChatField) GetGroupAvatarUrlField() string { - return "group_avatar_url" -} - -func (m *getModelGroupChatField) GetGroupNameField() string { - return "group_name" -} - -func (m *getModelGroupChatField) GetGroupWxIdField() string { - return "group_wx_id" -} - -func (m *getModelGroupChatField) GetHasBeenWatchField() string { - return "has_been_watch" -} - -func (m *getModelGroupChatField) GetIdField() string { - return "_id" -} - -func (m *getModelGroupChatField) GetInContactField() string { - return "in_contact" -} - -func (m *getModelGroupChatField) GetIsDefaultGroupNameField() string { - return "is_default_group_name" -} - -func (m *getModelGroupChatField) GetIsWatchField() string { - return "is_watch" -} - -func (m *getModelGroupChatField) GetLastSyncAtField() string { - return "last_sync_at" -} - -func (m *getModelGroupChatField) GetLastSyncMemberAtField() string { - return "last_sync_member_at" -} - -func (m *getModelGroupChatField) GetMemberCountField() string { - return "member_count" -} - -func (m *getModelGroupChatField) GetNoticeField() string { - return "notice" -} - -func (m *getModelGroupChatField) GetOwnerNameField() string { - return "owner_name" -} - -func (m *getModelGroupChatField) GetOwnerWxIdField() string { - return "owner_wx_id" -} - -func (m *getModelGroupChatField) GetQrcodeUpdatedAtField() string { - return "qrcode_updated_at" -} - -func (m *getModelGroupChatField) GetQrcodeUrlField() string { - return "qrcode_url" -} - -func (m *getModelGroupChatField) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *getModelGroupChatField) GetUpdatedAtField() string { - return "updated_at" -} - -type getModelGroupChatMemberField struct {} -var ModelGroupChatMemberField getModelGroupChatMemberField - -func (m *getModelGroupChatMemberField) GetAdminTypeField() string { - return "admin_type" -} - -func (m *getModelGroupChatMemberField) GetCreatedAtField() string { - return "created_at" -} - -func (m *getModelGroupChatMemberField) GetDeletedAtField() string { - return "deleted_at" -} - -func (m *getModelGroupChatMemberField) GetGroupChatIdField() string { - return "group_chat_id" -} - -func (m *getModelGroupChatMemberField) GetIdField() string { - return "_id" -} - -func (m *getModelGroupChatMemberField) GetIsRobotField() string { - return "is_robot" -} - -func (m *getModelGroupChatMemberField) GetLastSyncAtField() string { - return "last_sync_at" -} - -func (m *getModelGroupChatMemberField) GetMemberAliasField() string { - return "member_alias" -} - -func (m *getModelGroupChatMemberField) GetMemberAvatarField() string { - return "member_avatar" -} - -func (m *getModelGroupChatMemberField) GetMemberNameField() string { - return "member_name" -} - -func (m *getModelGroupChatMemberField) GetMemberSexField() string { - return "member_sex" -} - -func (m *getModelGroupChatMemberField) GetMemberWxIdField() string { - return "member_wx_id" -} - -func (m *getModelGroupChatMemberField) GetUpdatedAtField() string { - return "updated_at" -} - -type getModelRobotField struct {} -var ModelRobotField getModelRobotField - -func (m *getModelRobotField) GetAbilityLimitField() string { - return "ability_limit" -} - -func (m *getModelRobotField) GetAliasNameField() string { - return "alias_name" -} - -func (m *getModelRobotField) GetAndroidStatusField() string { - return "android_status" -} - -func (m *getModelRobotField) GetAndroidWechatVersionField() string { - return "android_wechat_version" -} - -func (m *getModelRobotField) GetAutoAddFriendField() string { - return "auto_add_friend" -} - -func (m *getModelRobotField) GetAvatarUrlField() string { - return "avatar_url" -} - -func (m *getModelRobotField) GetCityField() string { - return "city" -} - -func (m *getModelRobotField) GetCountryField() string { - return "country" -} - -func (m *getModelRobotField) GetCoverUrlField() string { - return "cover_url" -} - -func (m *getModelRobotField) GetCreateTimeField() string { - return "create_time" -} - -func (m *getModelRobotField) GetCrmAutoAddFriendField() string { - return "crm_auto_add_friend" -} - -func (m *getModelRobotField) GetCrmShopIdField() string { - return "crm_shop_id" -} - -func (m *getModelRobotField) GetDeleteTimeField() string { - return "delete_time" -} - -func (m *getModelRobotField) GetGreetIdField() string { - return "greet_id" -} - -func (m *getModelRobotField) GetIdField() string { - return "_id" -} - -func (m *getModelRobotField) GetInitFriendField() string { - return "init_friend" -} - -func (m *getModelRobotField) GetLastAndroidLoginAtField() string { - return "last_android_login_at" -} - -func (m *getModelRobotField) GetLastAndroidLogoutAtField() string { - return "last_android_logout_at" -} - -func (m *getModelRobotField) GetLastCityField() string { - return "last_city" -} - -func (m *getModelRobotField) GetLastLogOutTimeField() string { - return "last_log_out_time" -} - -func (m *getModelRobotField) GetLastLoginTimeField() string { - return "last_login_time" -} - -func (m *getModelRobotField) GetLastPcLoginAtField() string { - return "last_pc_login_at" -} - -func (m *getModelRobotField) GetLastPcLogoutAtField() string { - return "last_pc_logout_at" -} - -func (m *getModelRobotField) GetLastRegionCodeField() string { - return "last_region_code" -} - -func (m *getModelRobotField) GetLastRequireAddFriendTimeField() string { - return "last_require_add_friend_time" -} - -func (m *getModelRobotField) GetLimitedField() string { - return "limited" -} - -func (m *getModelRobotField) GetLogAndOutTimeField() string { - return "log_and_out_time" -} - -func (m *getModelRobotField) GetMobileField() string { - return "mobile" -} - -func (m *getModelRobotField) GetMomentPrivacyTypeField() string { - return "moment_privacy_type" -} - -func (m *getModelRobotField) GetNickNameField() string { - return "nick_name" -} - -func (m *getModelRobotField) GetNowFriendField() string { - return "now_friend" -} - -func (m *getModelRobotField) GetOpenForStrangerField() string { - return "open_for_stranger" -} - -func (m *getModelRobotField) GetProvinceField() string { - return "province" -} - -func (m *getModelRobotField) GetQrcodeField() string { - return "qrcode" -} - -func (m *getModelRobotField) GetRiskControlGroupField() string { - return "risk_control_group" -} - -func (m *getModelRobotField) GetRiskControlTaskField() string { - return "risk_control_task" -} - -func (m *getModelRobotField) GetSexField() string { - return "sex" -} - -func (m *getModelRobotField) GetSignatureField() string { - return "signature" -} - -func (m *getModelRobotField) GetStatusField() string { - return "status" -} - -func (m *getModelRobotField) GetTodayRequireTimeField() string { - return "today_require_time" -} - -func (m *getModelRobotField) GetUpdateTimeField() string { - return "update_time" -} - -func (m *getModelRobotField) GetUserIdField() string { - return "user_id" -} - -func (m *getModelRobotField) GetWechatAliasField() string { - return "wechat_alias" -} - -func (m *getModelRobotField) GetWechatIdField() string { - return "wechat_id" -} - -type getModelRobotFriendField struct {} -var ModelRobotFriendField getModelRobotFriendField - -func (m *getModelRobotFriendField) GetAddAtField() string { - return "add_at" -} - -func (m *getModelRobotFriendField) GetCreateTimeField() string { - return "create_time" -} - -func (m *getModelRobotFriendField) GetCrmPhoneField() string { - return "crm_phone" -} - -func (m *getModelRobotFriendField) GetDeleteTimeField() string { - return "delete_time" -} - -func (m *getModelRobotFriendField) GetDeletedField() string { - return "deleted" -} - -func (m *getModelRobotFriendField) GetIdField() string { - return "_id" -} - -func (m *getModelRobotFriendField) GetOfflineAddField() string { - return "offline_add" -} - -func (m *getModelRobotFriendField) GetPinyinField() string { - return "pinyin" -} - -func (m *getModelRobotFriendField) GetPinyinHeadField() string { - return "pinyin_head" -} - -func (m *getModelRobotFriendField) GetRemarkNameField() string { - return "remark_name" -} - -func (m *getModelRobotFriendField) GetRobotWechatIdField() string { - return "robot_wechat_id" -} - -func (m *getModelRobotFriendField) GetUpdateTimeField() string { - return "update_time" -} - -func (m *getModelRobotFriendField) GetUserWechatIdField() string { - return "user_wechat_id" -} - -type getModelSchedTaskField struct {} -var ModelSchedTaskField getModelSchedTaskField - -func (m *getModelSchedTaskField) GetCreatedAtField() string { - return "created_at" -} - -func (m *getModelSchedTaskField) GetExpiredAtField() string { - return "expired_at" -} - -func (m *getModelSchedTaskField) GetIdField() string { - return "_id" -} - -func (m *getModelSchedTaskField) GetReqIdField() string { - return "req_id" -} - -func (m *getModelSchedTaskField) GetReqJsonField() string { - return "req_json" -} - -func (m *getModelSchedTaskField) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *getModelSchedTaskField) GetRspJsonField() string { - return "rsp_json" -} - -func (m *getModelSchedTaskField) GetTaskStateField() string { - return "task_state" -} - -func (m *getModelSchedTaskField) GetTaskTypeField() string { - return "task_type" -} - -func (m *getModelSchedTaskField) GetUpdatedAtField() string { - return "updated_at" -} - -type getModelTbGroupMsgSessionField struct {} -var ModelTbGroupMsgSessionField getModelTbGroupMsgSessionField - -func (m *getModelTbGroupMsgSessionField) GetAllField() string { - return "all" -} - -func (m *getModelTbGroupMsgSessionField) GetIdField() string { - return "_id" -} - -func (m *getModelTbGroupMsgSessionField) GetLastFriendMsgAtField() string { - return "last_friend_msg_at" -} - -func (m *getModelTbGroupMsgSessionField) GetLastFriendMsgIdField() string { - return "last_friend_msg_id" -} - -func (m *getModelTbGroupMsgSessionField) GetLastMemberWxIdField() string { - return "last_member_wx_id" -} - -func (m *getModelTbGroupMsgSessionField) GetLastMsgAtField() string { - return "last_msg_at" -} - -func (m *getModelTbGroupMsgSessionField) GetLastMsgIdField() string { - return "last_msg_id" -} - -func (m *getModelTbGroupMsgSessionField) GetReadField() string { - return "read" -} - -func (m *getModelTbGroupMsgSessionField) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *getModelTbGroupMsgSessionField) GetUnreadField() string { - return "unread" -} - -func (m *getModelTbGroupMsgSessionField) GetUserWxIdField() string { - return "user_wx_id" -} - -type getModelTbPrivateMsgSessionField struct {} -var ModelTbPrivateMsgSessionField getModelTbPrivateMsgSessionField - -func (m *getModelTbPrivateMsgSessionField) GetAllField() string { - return "all" -} - -func (m *getModelTbPrivateMsgSessionField) GetIdField() string { - return "_id" -} - -func (m *getModelTbPrivateMsgSessionField) GetLastFriendMsgAtField() string { - return "last_friend_msg_at" -} - -func (m *getModelTbPrivateMsgSessionField) GetLastFriendMsgIdField() string { - return "last_friend_msg_id" -} - -func (m *getModelTbPrivateMsgSessionField) GetLastMsgAtField() string { - return "last_msg_at" -} - -func (m *getModelTbPrivateMsgSessionField) GetLastMsgIdField() string { - return "last_msg_id" -} - -func (m *getModelTbPrivateMsgSessionField) GetReadField() string { - return "read" -} - -func (m *getModelTbPrivateMsgSessionField) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *getModelTbPrivateMsgSessionField) GetUnreadField() string { - return "unread" -} - -func (m *getModelTbPrivateMsgSessionField) GetUserWxIdField() string { - return "user_wx_id" -} - -type getModelTbRobotGroupMsgField struct {} -var ModelTbRobotGroupMsgField getModelTbRobotGroupMsgField - -func (m *getModelTbRobotGroupMsgField) GetBindIdField() string { - return "bind_id" -} - -func (m *getModelTbRobotGroupMsgField) GetCallBackAtField() string { - return "call_back_at" -} - -func (m *getModelTbRobotGroupMsgField) GetContentDataField() string { - return "content_data" -} - -func (m *getModelTbRobotGroupMsgField) GetContentReadField() string { - return "content_read" -} - -func (m *getModelTbRobotGroupMsgField) GetCreatedAtField() string { - return "created_at" -} - -func (m *getModelTbRobotGroupMsgField) GetCursorField() string { - return "cursor" -} - -func (m *getModelTbRobotGroupMsgField) GetDirectField() string { - return "direct" -} - -func (m *getModelTbRobotGroupMsgField) GetExpireAtField() string { - return "expire_at" -} - -func (m *getModelTbRobotGroupMsgField) GetFailReasonField() string { - return "fail_reason" -} - -func (m *getModelTbRobotGroupMsgField) GetIdField() string { - return "_id" -} - -func (m *getModelTbRobotGroupMsgField) GetMsgIdField() string { - return "msg_id" -} - -func (m *getModelTbRobotGroupMsgField) GetMsgTypeField() string { - return "msg_type" -} - -func (m *getModelTbRobotGroupMsgField) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *getModelTbRobotGroupMsgField) GetSendAtField() string { - return "send_at" -} - -func (m *getModelTbRobotGroupMsgField) GetSendErrorCodeField() string { - return "send_error_code" -} - -func (m *getModelTbRobotGroupMsgField) GetSendStatusField() string { - return "send_status" -} - -func (m *getModelTbRobotGroupMsgField) GetSenderWxIdField() string { - return "sender_wx_id" -} - -func (m *getModelTbRobotGroupMsgField) GetUpdatedAtField() string { - return "updated_at" -} - -func (m *getModelTbRobotGroupMsgField) GetUserWxIdField() string { - return "user_wx_id" -} - -type getModelTbRobotPrivateMsgField struct {} -var ModelTbRobotPrivateMsgField getModelTbRobotPrivateMsgField - -func (m *getModelTbRobotPrivateMsgField) GetBindIdField() string { - return "bind_id" -} - -func (m *getModelTbRobotPrivateMsgField) GetCallBackAtField() string { - return "call_back_at" -} - -func (m *getModelTbRobotPrivateMsgField) GetContentDataField() string { - return "content_data" -} - -func (m *getModelTbRobotPrivateMsgField) GetContentReadField() string { - return "content_read" -} - -func (m *getModelTbRobotPrivateMsgField) GetCreatedAtField() string { - return "created_at" -} - -func (m *getModelTbRobotPrivateMsgField) GetCursorField() string { - return "cursor" -} - -func (m *getModelTbRobotPrivateMsgField) GetDirectField() string { - return "direct" -} - -func (m *getModelTbRobotPrivateMsgField) GetExpireAtField() string { - return "expire_at" -} - -func (m *getModelTbRobotPrivateMsgField) GetFailReasonField() string { - return "fail_reason" -} - -func (m *getModelTbRobotPrivateMsgField) GetIdField() string { - return "_id" -} - -func (m *getModelTbRobotPrivateMsgField) GetMsgIdField() string { - return "msg_id" -} - -func (m *getModelTbRobotPrivateMsgField) GetMsgTypeField() string { - return "msg_type" -} - -func (m *getModelTbRobotPrivateMsgField) GetRobotWxIdField() string { - return "robot_wx_id" -} - -func (m *getModelTbRobotPrivateMsgField) GetSendAtField() string { - return "send_at" -} - -func (m *getModelTbRobotPrivateMsgField) GetSendErrorCodeField() string { - return "send_error_code" -} - -func (m *getModelTbRobotPrivateMsgField) GetSendStatusField() string { - return "send_status" -} - -func (m *getModelTbRobotPrivateMsgField) GetUpdatedAtField() string { - return "updated_at" -} - -func (m *getModelTbRobotPrivateMsgField) GetUserWxIdField() string { - return "user_wx_id" -} - -type getModelWsConnectRecordField struct {} -var ModelWsConnectRecordField getModelWsConnectRecordField - -func (m *getModelWsConnectRecordField) GetBindIdField() string { - return "bind_id" -} - -func (m *getModelWsConnectRecordField) GetCreatedAtField() string { - return "created_at" -} - -func (m *getModelWsConnectRecordField) GetExpiredAtField() string { - return "expired_at" -} - -func (m *getModelWsConnectRecordField) GetIdField() string { - return "_id" -} - -func (m *getModelWsConnectRecordField) GetLoginAtField() string { - return "login_at" -} - -func (m *getModelWsConnectRecordField) GetLogoutAtField() string { - return "logout_at" -} - -func (m *getModelWsConnectRecordField) GetUserIdField() string { - return "user_id" -} - diff --git a/autogen_model_mdbc.go b/autogen_model_mdbc.go index 0fddc31..1376522 100644 --- a/autogen_model_mdbc.go +++ b/autogen_model_mdbc.go @@ -1,2835 +1,787 @@ -// Code generated by proto_parser. DO NOT EDIT. +// Code generated by protoc-gen-coco. DO NOT EDIT. // source: mdbc.proto +// generate at: 2023-03-23 00:58:55 package mdbc -import ( - "gitter.top/coco/coco/core" -) - - -// Auto Generated ModelFriendInfo Table Name. DO NOT EDIT. const TableNameModelFriendInfo = "tb_friends_info" + func (t *ModelFriendInfo) TableName() string { return "tb_friends_info" } -// Auto Generated ModelGroupChat Table Name. DO NOT EDIT. +func (m *ModelFriendInfo) GetIdField() string { + return "_id" +} + +func (m *ModelFriendInfo) GetWechatIdField() string { + return "wechat_id" +} + +func (m *ModelFriendInfo) GetNicknameField() string { + return "nick_name" +} + +func (m *ModelFriendInfo) GetWechatAliasField() string { + return "wechat_alias" +} + +func (m *ModelFriendInfo) GetAvatarUrlField() string { + return "avatar_url" +} + +func (m *ModelFriendInfo) GetPhoneField() string { + return "phone" +} + +func (m *ModelFriendInfo) GetCountryField() string { + return "country" +} + +func (m *ModelFriendInfo) GetProvinceField() string { + return "province" +} + +func (m *ModelFriendInfo) GetCityField() string { + return "city" +} + +func (m *ModelFriendInfo) GetSexField() string { + return "sex" +} + +func (m *ModelFriendInfo) GetCreateTimeField() string { + return "create_time" +} + +func (m *ModelFriendInfo) GetUpdateTimeField() string { + return "update_time" +} + const TableNameModelGroupChat = "tb_crm_group_chat" + func (t *ModelGroupChat) TableName() string { return "tb_crm_group_chat" } -// Auto Generated ModelGroupChatMember Table Name. DO NOT EDIT. +func (m *ModelGroupChat) GetIdField() string { + return "_id" +} + +func (m *ModelGroupChat) GetCreatedAtField() string { + return "created_at" +} + +func (m *ModelGroupChat) GetUpdatedAtField() string { + return "updated_at" +} + +func (m *ModelGroupChat) GetDeletedAtField() string { + return "deleted_at" +} + +func (m *ModelGroupChat) GetRobotWxIdField() string { + return "robot_wx_id" +} + +func (m *ModelGroupChat) GetGroupWxIdField() string { + return "group_wx_id" +} + +func (m *ModelGroupChat) GetOwnerWxIdField() string { + return "owner_wx_id" +} + +func (m *ModelGroupChat) GetGroupNameField() string { + return "group_name" +} + +func (m *ModelGroupChat) GetMemberCountField() string { + return "member_count" +} + +func (m *ModelGroupChat) GetOwnerNameField() string { + return "owner_name" +} + +func (m *ModelGroupChat) GetGroupAvatarUrlField() string { + return "group_avatar_url" +} + +func (m *ModelGroupChat) GetIsWatchField() string { + return "is_watch" +} + +func (m *ModelGroupChat) GetHasBeenWatchField() string { + return "has_been_watch" +} + +func (m *ModelGroupChat) GetIsDefaultGroupNameField() string { + return "is_default_group_name" +} + +func (m *ModelGroupChat) GetInContactField() string { + return "in_contact" +} + +func (m *ModelGroupChat) GetDisableInviteField() string { + return "disable_invite" +} + +func (m *ModelGroupChat) GetLastSyncAtField() string { + return "last_sync_at" +} + +func (m *ModelGroupChat) GetLastSyncMemberAtField() string { + return "last_sync_member_at" +} + +func (m *ModelGroupChat) GetNoticeField() string { + return "notice" +} + +func (m *ModelGroupChat) GetQrcodeUpdatedAtField() string { + return "qrcode_updated_at" +} + +func (m *ModelGroupChat) GetQrcodeUrlField() string { + return "qrcode_url" +} + +func (m *ModelGroupChat) GetAdminTypeField() string { + return "admin_type" +} + const TableNameModelGroupChatMember = "tb_crm_group_chat_member" + func (t *ModelGroupChatMember) TableName() string { return "tb_crm_group_chat_member" } -// Auto Generated ModelRobot Table Name. DO NOT EDIT. -const TableNameModelRobot = "tb_robot" -func (t *ModelRobot) TableName() string { - return "tb_robot" +func (m *ModelGroupChatMember) GetIdField() string { + return "_id" } -// Auto Generated ModelRobotFriend Table Name. DO NOT EDIT. -const TableNameModelRobotFriend = "tb_robot_friend" -func (t *ModelRobotFriend) TableName() string { - return "tb_robot_friend" +func (m *ModelGroupChatMember) GetCreatedAtField() string { + return "created_at" } -// Auto Generated ModelSchedTask Table Name. DO NOT EDIT. -const TableNameModelSchedTask = "tb_crm_sched_task" -func (t *ModelSchedTask) TableName() string { - return "tb_crm_sched_task" +func (m *ModelGroupChatMember) GetUpdatedAtField() string { + return "updated_at" } -// Auto Generated ModelTbGroupMsgSession Table Name. DO NOT EDIT. -const TableNameModelTbGroupMsgSession = "tb_crm_group_msg_session" -func (t *ModelTbGroupMsgSession) TableName() string { - return "tb_crm_group_msg_session" +func (m *ModelGroupChatMember) GetDeletedAtField() string { + return "deleted_at" +} + +func (m *ModelGroupChatMember) GetGroupChatIdField() string { + return "group_chat_id" +} + +func (m *ModelGroupChatMember) GetMemberWxIdField() string { + return "member_wx_id" +} + +func (m *ModelGroupChatMember) GetMemberNameField() string { + return "member_name" +} + +func (m *ModelGroupChatMember) GetMemberAvatarField() string { + return "member_avatar" +} + +func (m *ModelGroupChatMember) GetMemberAliasField() string { + return "member_alias" +} + +func (m *ModelGroupChatMember) GetMemberSexField() string { + return "member_sex" +} + +func (m *ModelGroupChatMember) GetIsRobotField() string { + return "is_robot" +} + +func (m *ModelGroupChatMember) GetAdminTypeField() string { + return "admin_type" +} + +func (m *ModelGroupChatMember) GetLastSyncAtField() string { + return "last_sync_at" } -// Auto Generated ModelTbPrivateMsgSession Table Name. DO NOT EDIT. const TableNameModelTbPrivateMsgSession = "tb_crm_private_msg_session" + func (t *ModelTbPrivateMsgSession) TableName() string { return "tb_crm_private_msg_session" } -// Auto Generated ModelTbRobotGroupMsg Table Name. DO NOT EDIT. -const TableNameModelTbRobotGroupMsg = "tb_crm_robot_group_msg" -func (t *ModelTbRobotGroupMsg) TableName() string { - return "tb_crm_robot_group_msg" +func (m *ModelTbPrivateMsgSession) GetIdField() string { + return "_id" +} + +func (m *ModelTbPrivateMsgSession) GetAllField() string { + return "all" +} + +func (m *ModelTbPrivateMsgSession) GetReadField() string { + return "read" +} + +func (m *ModelTbPrivateMsgSession) GetUnreadField() string { + return "unread" +} + +func (m *ModelTbPrivateMsgSession) GetLastMsgAtField() string { + return "last_msg_at" +} + +func (m *ModelTbPrivateMsgSession) GetLastFriendMsgAtField() string { + return "last_friend_msg_at" +} + +func (m *ModelTbPrivateMsgSession) GetRobotWxIdField() string { + return "robot_wx_id" +} + +func (m *ModelTbPrivateMsgSession) GetUserWxIdField() string { + return "user_wx_id" +} + +func (m *ModelTbPrivateMsgSession) GetLastMsgIdField() string { + return "last_msg_id" +} + +func (m *ModelTbPrivateMsgSession) GetLastFriendMsgIdField() string { + return "last_friend_msg_id" +} + +const TableNameModelTbGroupMsgSession = "tb_crm_group_msg_session" + +func (t *ModelTbGroupMsgSession) TableName() string { + return "tb_crm_group_msg_session" +} + +func (m *ModelTbGroupMsgSession) GetIdField() string { + return "_id" +} + +func (m *ModelTbGroupMsgSession) GetAllField() string { + return "all" +} + +func (m *ModelTbGroupMsgSession) GetReadField() string { + return "read" +} + +func (m *ModelTbGroupMsgSession) GetUnreadField() string { + return "unread" +} + +func (m *ModelTbGroupMsgSession) GetLastMsgAtField() string { + return "last_msg_at" +} + +func (m *ModelTbGroupMsgSession) GetLastFriendMsgAtField() string { + return "last_friend_msg_at" +} + +func (m *ModelTbGroupMsgSession) GetRobotWxIdField() string { + return "robot_wx_id" +} + +func (m *ModelTbGroupMsgSession) GetUserWxIdField() string { + return "user_wx_id" +} + +func (m *ModelTbGroupMsgSession) GetLastMsgIdField() string { + return "last_msg_id" +} + +func (m *ModelTbGroupMsgSession) GetLastFriendMsgIdField() string { + return "last_friend_msg_id" +} + +func (m *ModelTbGroupMsgSession) GetLastMemberWxIdField() string { + return "last_member_wx_id" } -// Auto Generated ModelTbRobotPrivateMsg Table Name. DO NOT EDIT. const TableNameModelTbRobotPrivateMsg = "tb_crm_robot_private_msg" + func (t *ModelTbRobotPrivateMsg) TableName() string { return "tb_crm_robot_private_msg" } -// Auto Generated ModelWsConnectRecord Table Name. DO NOT EDIT. +func (m *ModelTbRobotPrivateMsg) GetIdField() string { + return "_id" +} + +func (m *ModelTbRobotPrivateMsg) GetBindIdField() string { + return "bind_id" +} + +func (m *ModelTbRobotPrivateMsg) GetRobotWxIdField() string { + return "robot_wx_id" +} + +func (m *ModelTbRobotPrivateMsg) GetUserWxIdField() string { + return "user_wx_id" +} + +func (m *ModelTbRobotPrivateMsg) GetMsgIdField() string { + return "msg_id" +} + +func (m *ModelTbRobotPrivateMsg) GetMsgTypeField() string { + return "msg_type" +} + +func (m *ModelTbRobotPrivateMsg) GetSendStatusField() string { + return "send_status" +} + +func (m *ModelTbRobotPrivateMsg) GetDirectField() string { + return "direct" +} + +func (m *ModelTbRobotPrivateMsg) GetSendErrorCodeField() string { + return "send_error_code" +} + +func (m *ModelTbRobotPrivateMsg) GetContentReadField() string { + return "content_read" +} + +func (m *ModelTbRobotPrivateMsg) GetCreatedAtField() string { + return "created_at" +} + +func (m *ModelTbRobotPrivateMsg) GetUpdatedAtField() string { + return "updated_at" +} + +func (m *ModelTbRobotPrivateMsg) GetFailReasonField() string { + return "fail_reason" +} + +func (m *ModelTbRobotPrivateMsg) GetCallBackAtField() string { + return "call_back_at" +} + +func (m *ModelTbRobotPrivateMsg) GetCursorField() string { + return "cursor" +} + +func (m *ModelTbRobotPrivateMsg) GetSendAtField() string { + return "send_at" +} + +func (m *ModelTbRobotPrivateMsg) GetExpireAtField() string { + return "expire_at" +} + +func (m *ModelTbRobotPrivateMsg) GetContentDataField() string { + return "content_data" +} + +const TableNameModelTbRobotGroupMsg = "tb_crm_robot_group_msg" + +func (t *ModelTbRobotGroupMsg) TableName() string { + return "tb_crm_robot_group_msg" +} + +func (m *ModelTbRobotGroupMsg) GetIdField() string { + return "_id" +} + +func (m *ModelTbRobotGroupMsg) GetBindIdField() string { + return "bind_id" +} + +func (m *ModelTbRobotGroupMsg) GetRobotWxIdField() string { + return "robot_wx_id" +} + +func (m *ModelTbRobotGroupMsg) GetUserWxIdField() string { + return "user_wx_id" +} + +func (m *ModelTbRobotGroupMsg) GetMsgIdField() string { + return "msg_id" +} + +func (m *ModelTbRobotGroupMsg) GetMsgTypeField() string { + return "msg_type" +} + +func (m *ModelTbRobotGroupMsg) GetSendStatusField() string { + return "send_status" +} + +func (m *ModelTbRobotGroupMsg) GetDirectField() string { + return "direct" +} + +func (m *ModelTbRobotGroupMsg) GetSendErrorCodeField() string { + return "send_error_code" +} + +func (m *ModelTbRobotGroupMsg) GetContentReadField() string { + return "content_read" +} + +func (m *ModelTbRobotGroupMsg) GetCreatedAtField() string { + return "created_at" +} + +func (m *ModelTbRobotGroupMsg) GetUpdatedAtField() string { + return "updated_at" +} + +func (m *ModelTbRobotGroupMsg) GetFailReasonField() string { + return "fail_reason" +} + +func (m *ModelTbRobotGroupMsg) GetCallBackAtField() string { + return "call_back_at" +} + +func (m *ModelTbRobotGroupMsg) GetCursorField() string { + return "cursor" +} + +func (m *ModelTbRobotGroupMsg) GetSendAtField() string { + return "send_at" +} + +func (m *ModelTbRobotGroupMsg) GetExpireAtField() string { + return "expire_at" +} + +func (m *ModelTbRobotGroupMsg) GetContentDataField() string { + return "content_data" +} + +func (m *ModelTbRobotGroupMsg) GetSenderWxIdField() string { + return "sender_wx_id" +} + +const TableNameModelSchedTask = "tb_crm_sched_task" + +func (t *ModelSchedTask) TableName() string { + return "tb_crm_sched_task" +} + +func (m *ModelSchedTask) GetIdField() string { + return "_id" +} + +func (m *ModelSchedTask) GetCreatedAtField() string { + return "created_at" +} + +func (m *ModelSchedTask) GetUpdatedAtField() string { + return "updated_at" +} + +func (m *ModelSchedTask) GetTaskStateField() string { + return "task_state" +} + +func (m *ModelSchedTask) GetTaskTypeField() string { + return "task_type" +} + +func (m *ModelSchedTask) GetReqIdField() string { + return "req_id" +} + +func (m *ModelSchedTask) GetReqJsonField() string { + return "req_json" +} + +func (m *ModelSchedTask) GetRspJsonField() string { + return "rsp_json" +} + +func (m *ModelSchedTask) GetRobotWxIdField() string { + return "robot_wx_id" +} + +func (m *ModelSchedTask) GetExpiredAtField() string { + return "expired_at" +} + +const TableNameModelRobotFriend = "tb_robot_friend" + +func (t *ModelRobotFriend) TableName() string { + return "tb_robot_friend" +} + +func (m *ModelRobotFriend) GetIdField() string { + return "_id" +} + +func (m *ModelRobotFriend) GetRobotWechatIdField() string { + return "robot_wechat_id" +} + +func (m *ModelRobotFriend) GetUserWechatIdField() string { + return "user_wechat_id" +} + +func (m *ModelRobotFriend) GetDeletedField() string { + return "deleted" +} + +func (m *ModelRobotFriend) GetOfflineAddField() string { + return "offline_add" +} + +func (m *ModelRobotFriend) GetRemarkNameField() string { + return "remark_name" +} + +func (m *ModelRobotFriend) GetPinyinField() string { + return "pinyin" +} + +func (m *ModelRobotFriend) GetPinyinHeadField() string { + return "pinyin_head" +} + +func (m *ModelRobotFriend) GetDeleteTimeField() string { + return "delete_time" +} + +func (m *ModelRobotFriend) GetCreateTimeField() string { + return "create_time" +} + +func (m *ModelRobotFriend) GetUpdateTimeField() string { + return "update_time" +} + +func (m *ModelRobotFriend) GetAddAtField() string { + return "add_at" +} + +func (m *ModelRobotFriend) GetCrmPhoneField() string { + return "crm_phone" +} + const TableNameModelWsConnectRecord = "tb_ws_connect_record" + func (t *ModelWsConnectRecord) TableName() string { return "tb_ws_connect_record" } - -func (m *AtMsgItem) GetContentCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Content", - DbFieldName: "content", - Comment: "文本内容", - } -} - -func (m *AtMsgItem) GetNickNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "NickName", - DbFieldName: "nick_name", - Comment: "@的昵称", - } -} - -func (m *AtMsgItem) GetSubTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SubType", - DbFieldName: "sub_type", - Comment: "0:文本内容,1:@某人", - } -} - -func (m *AtMsgItem) GetUserNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserName", - DbFieldName: "user_name", - Comment: "@的用户(wx_id)", - } -} - -func (m *ContentData) GetAtMsgItemCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AtMsgItem", - DbFieldName: "at_msg_item", - Comment: "发送群@部分人消息的数据", - } -} - -func (m *ContentData) GetAtUserNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AtUserName", - DbFieldName: "at_user_name", - Comment: "群聊at消息", - } -} - -func (m *ContentData) GetContentCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Content", - DbFieldName: "content", - Comment: "1文本的内容;2 语音的url(amr格式);6小程序的xml;", - } -} - -func (m *ContentData) GetFileSizeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "FileSize", - DbFieldName: "file_size", - Comment: "文件大小KB单位", - } -} - -func (m *ContentData) GetFileUrlCore() *core.StructField { - return &core.StructField{ - StructFieldName: "FileUrl", - DbFieldName: "file_url", - Comment: "3图片的url;4视频的Url;5链接的分享图;8表情的url(gif);9文件的url;", - } -} - -func (m *ContentData) GetIsAtMyselfCore() *core.StructField { - return &core.StructField{ - StructFieldName: "IsAtMyself", - DbFieldName: "is_at_myself", - Comment: "是否有at我自己 单独一个字段 方便维护和查询", - } -} - -func (m *ContentData) GetRawContentCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RawContent", - DbFieldName: "raw_content", - Comment: "元始的xml数据 做数据转发时用;", - } -} - -func (m *ContentData) GetResourceDurationCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ResourceDuration", - DbFieldName: "resource_duration", - Comment: "媒体时长 统一单位s", - } -} - -func (m *ContentData) GetShareDescCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ShareDesc", - DbFieldName: "share_desc", - Comment: "5链接的描述;", - } -} - -func (m *ContentData) GetShareNickNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ShareNickName", - DbFieldName: "share_nick_name", - Comment: "7名片的被分享(名片)的昵称;", - } -} - -func (m *ContentData) GetShareTitleCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ShareTitle", - DbFieldName: "share_title", - Comment: "5链接的标题;", - } -} - -func (m *ContentData) GetShareUrlCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ShareUrl", - DbFieldName: "share_url", - Comment: "5链接的URL;", - } -} - -func (m *ContentData) GetShareUserNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ShareUserName", - DbFieldName: "share_user_name", - Comment: "7名片的被分享(名片)好友id;", - } -} - -func (m *ContentData) GetWxMsgTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "WxMsgType", - DbFieldName: "wx_msg_type", - Comment: "消息类型: 1 文本;2 语音;3 图片;4 视频;5 链接;6 小程序;7", - } -} - -func (m *ModelFriendInfo) GetAvatarUrlCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AvatarUrl", - DbFieldName: "avatar_url", - Comment: "用户头像", - } -} - -func (m *ModelFriendInfo) GetCityCore() *core.StructField { - return &core.StructField{ - StructFieldName: "City", - DbFieldName: "city", - Comment: "城市", - } -} - -func (m *ModelFriendInfo) GetCountryCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Country", - DbFieldName: "country", - Comment: "国家", - } -} - -func (m *ModelFriendInfo) GetCreateTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreateTime", - DbFieldName: "create_time", - Comment: "创建时间", - } -} - -func (m *ModelFriendInfo) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID wxid md5", - } -} - -func (m *ModelFriendInfo) GetNicknameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Nickname", - DbFieldName: "nick_name", - Comment: "用户暱称", - } -} - -func (m *ModelFriendInfo) GetPhoneCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Phone", - DbFieldName: "phone", - Comment: "手机号码", - } -} - -func (m *ModelFriendInfo) GetProvinceCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Province", - DbFieldName: "province", - Comment: "省份", - } -} - -func (m *ModelFriendInfo) GetSexCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Sex", - DbFieldName: "sex", - Comment: "0未知 1男 2女", - } -} - -func (m *ModelFriendInfo) GetUpdateTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdateTime", - DbFieldName: "update_time", - Comment: "更新时间", - } -} - -func (m *ModelFriendInfo) GetWechatAliasCore() *core.StructField { - return &core.StructField{ - StructFieldName: "WechatAlias", - DbFieldName: "wechat_alias", - Comment: "用户微信号", - } -} - -func (m *ModelFriendInfo) GetWechatIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "WechatId", - DbFieldName: "wechat_id", - Comment: "用户微信ID", - } -} - -func (m *ModelGroupChat) GetAdminTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AdminType", - DbFieldName: "admin_type", - Comment: "机器人权限类型", - } -} - -func (m *ModelGroupChat) GetCreatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", - } -} - -func (m *ModelGroupChat) GetDeletedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "DeletedAt", - DbFieldName: "deleted_at", - Comment: "删除时间【记: 此表正常情况下 只进行软删除】非零 历史群 0正常群", - } -} - -func (m *ModelGroupChat) GetDisableInviteCore() *core.StructField { - return &core.StructField{ - StructFieldName: "DisableInvite", - DbFieldName: "disable_invite", - Comment: "是否开启了群聊邀请确认 true 开启了 false 关闭了", - } -} - -func (m *ModelGroupChat) GetGroupAvatarUrlCore() *core.StructField { - return &core.StructField{ - StructFieldName: "GroupAvatarUrl", - DbFieldName: "group_avatar_url", - Comment: "群头像", - } -} - -func (m *ModelGroupChat) GetGroupNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "GroupName", - DbFieldName: "group_name", - Comment: "群名称", - } -} - -func (m *ModelGroupChat) GetGroupWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "GroupWxId", - DbFieldName: "group_wx_id", - Comment: "群id", - } -} - -func (m *ModelGroupChat) GetHasBeenWatchCore() *core.StructField { - return &core.StructField{ - StructFieldName: "HasBeenWatch", - DbFieldName: "has_been_watch", - Comment: "以前有关注过", - } -} - -func (m *ModelGroupChat) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID", - } -} - -func (m *ModelGroupChat) GetInContactCore() *core.StructField { - return &core.StructField{ - StructFieldName: "InContact", - DbFieldName: "in_contact", - Comment: "是否在通讯录中", - } -} - -func (m *ModelGroupChat) GetIsDefaultGroupNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "IsDefaultGroupName", - DbFieldName: "is_default_group_name", - Comment: "是否是默认的群名称", - } -} - -func (m *ModelGroupChat) GetIsWatchCore() *core.StructField { - return &core.StructField{ - StructFieldName: "IsWatch", - DbFieldName: "is_watch", - Comment: "是否关注群", - } -} - -func (m *ModelGroupChat) GetLastSyncAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastSyncAt", - DbFieldName: "last_sync_at", - Comment: "最后更新群信息时间 【通过这里 指定规则 去拉群基本信息】", - } -} - -func (m *ModelGroupChat) GetLastSyncMemberAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastSyncMemberAt", - DbFieldName: "last_sync_member_at", - Comment: "最后更新群成员时间 【通过这里 指定规则 去拉群成员信息】", - } -} - -func (m *ModelGroupChat) GetMemberCountCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MemberCount", - DbFieldName: "member_count", - Comment: "群成员数量", - } -} - -func (m *ModelGroupChat) GetNoticeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Notice", - DbFieldName: "notice", - Comment: "群公告", - } -} - -func (m *ModelGroupChat) GetOwnerNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "OwnerName", - DbFieldName: "owner_name", - Comment: "群主名称", - } -} - -func (m *ModelGroupChat) GetOwnerWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "OwnerWxId", - DbFieldName: "owner_wx_id", - Comment: "群主id", - } -} - -func (m *ModelGroupChat) GetQrcodeUpdatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "QrcodeUpdatedAt", - DbFieldName: "qrcode_updated_at", - Comment: "群聊二维码更新时间", - } -} - -func (m *ModelGroupChat) GetQrcodeUrlCore() *core.StructField { - return &core.StructField{ - StructFieldName: "QrcodeUrl", - DbFieldName: "qrcode_url", - Comment: "群聊二维码", - } -} - -func (m *ModelGroupChat) GetRobotWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", - } -} - -func (m *ModelGroupChat) GetUpdatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", - } -} - -func (m *ModelGroupChatMember) GetAdminTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AdminType", - DbFieldName: "admin_type", - Comment: "权限类型 群主 管理员 普通成员", - } -} - -func (m *ModelGroupChatMember) GetCreatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", - } -} - -func (m *ModelGroupChatMember) GetDeletedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "DeletedAt", - DbFieldName: "deleted_at", - Comment: "删除时间 这个表一般直接硬删除", - } -} - -func (m *ModelGroupChatMember) GetGroupChatIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "GroupChatId", - DbFieldName: "group_chat_id", - Comment: "群 ModelGroupChat 的ID", - } -} - -func (m *ModelGroupChatMember) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "id", - } -} - -func (m *ModelGroupChatMember) GetIsRobotCore() *core.StructField { - return &core.StructField{ - StructFieldName: "IsRobot", - DbFieldName: "is_robot", - Comment: "是否是机器人", - } -} - -func (m *ModelGroupChatMember) GetLastSyncAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastSyncAt", - DbFieldName: "last_sync_at", - Comment: "该群该成员 最后更新时间", - } -} - -func (m *ModelGroupChatMember) GetMemberAliasCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MemberAlias", - DbFieldName: "member_alias", - Comment: "群昵称", - } -} - -func (m *ModelGroupChatMember) GetMemberAvatarCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MemberAvatar", - DbFieldName: "member_avatar", - Comment: "群成员头像", - } -} - -func (m *ModelGroupChatMember) GetMemberNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MemberName", - DbFieldName: "member_name", - Comment: "群成员名称", - } -} - -func (m *ModelGroupChatMember) GetMemberSexCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MemberSex", - DbFieldName: "member_sex", - Comment: "性别", - } -} - -func (m *ModelGroupChatMember) GetMemberWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MemberWxId", - DbFieldName: "member_wx_id", - Comment: "群成员微信id", - } -} - -func (m *ModelGroupChatMember) GetUpdatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", - } -} - -func (m *ModelRobot) GetAbilityLimitCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AbilityLimit", - DbFieldName: "ability_limit", - Comment: "机器人是否功能受限", - } -} - -func (m *ModelRobot) GetAliasNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AliasName", - DbFieldName: "alias_name", - Comment: "微信号", - } -} - -func (m *ModelRobot) GetAndroidStatusCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AndroidStatus", - DbFieldName: "android_status", - Comment: "机器人Android是否在线 10在线 11离线", - } -} - -func (m *ModelRobot) GetAndroidWechatVersionCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AndroidWechatVersion", - DbFieldName: "android_wechat_version", - Comment: "微信版本", - } -} - -func (m *ModelRobot) GetAutoAddFriendCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AutoAddFriend", - DbFieldName: "auto_add_friend", - Comment: "机器人是否自动通过好友请求 0否 1是", - } -} - -func (m *ModelRobot) GetAvatarUrlCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AvatarUrl", - DbFieldName: "avatar_url", - Comment: "机器人头像", - } -} - -func (m *ModelRobot) GetCityCore() *core.StructField { - return &core.StructField{ - StructFieldName: "City", - DbFieldName: "city", - Comment: "城市", - } -} - -func (m *ModelRobot) GetCountryCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Country", - DbFieldName: "country", - Comment: "国家", - } -} - -func (m *ModelRobot) GetCoverUrlCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CoverUrl", - DbFieldName: "cover_url", - Comment: "朋友圈封面url", - } -} - -func (m *ModelRobot) GetCreateTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreateTime", - DbFieldName: "create_time", - Comment: "创建时间", - } -} - -func (m *ModelRobot) GetCrmAutoAddFriendCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CrmAutoAddFriend", - DbFieldName: "crm_auto_add_friend", - Comment: "crm系统自动通过好友 1自动通过 0不自动通过", - } -} - -func (m *ModelRobot) GetCrmShopIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CrmShopId", - DbFieldName: "crm_shop_id", - Comment: "机器人所属商户id", - } -} - -func (m *ModelRobot) GetDeleteTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "DeleteTime", - DbFieldName: "delete_time", - Comment: "删除时间", - } -} - -func (m *ModelRobot) GetGreetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "GreetId", - DbFieldName: "greet_id", - Comment: "打招呼模板id", - } -} - -func (m *ModelRobot) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID wxid md5", - } -} - -func (m *ModelRobot) GetInitFriendCore() *core.StructField { - return &core.StructField{ - StructFieldName: "InitFriend", - DbFieldName: "init_friend", - Comment: "机器人初始好友人数", - } -} - -func (m *ModelRobot) GetLastAndroidLoginAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastAndroidLoginAt", - DbFieldName: "last_android_login_at", - Comment: "最近安卓登录时间", - } -} - -func (m *ModelRobot) GetLastAndroidLogoutAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastAndroidLogoutAt", - DbFieldName: "last_android_logout_at", - Comment: "最近安卓登出时间", - } -} - -func (m *ModelRobot) GetLastCityCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastCity", - DbFieldName: "last_city", - Comment: "最后登录的城市名称", - } -} - -func (m *ModelRobot) GetLastLogOutTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastLogOutTime", - DbFieldName: "last_log_out_time", - Comment: "最后登出时间", - } -} - -func (m *ModelRobot) GetLastLoginTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastLoginTime", - DbFieldName: "last_login_time", - Comment: "最后登录时间", - } -} - -func (m *ModelRobot) GetLastPcLoginAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastPcLoginAt", - DbFieldName: "last_pc_login_at", - Comment: "最近PC登录时间", - } -} - -func (m *ModelRobot) GetLastPcLogoutAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastPcLogoutAt", - DbFieldName: "last_pc_logout_at", - Comment: "最近PC登出时间", - } -} - -func (m *ModelRobot) GetLastRegionCodeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastRegionCode", - DbFieldName: "last_region_code", - Comment: "最后登录的扫码设备的地区编码", - } -} - -func (m *ModelRobot) GetLastRequireAddFriendTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastRequireAddFriendTime", - DbFieldName: "last_require_add_friend_time", - Comment: "上一次请求添加好友的时间", - } -} - -func (m *ModelRobot) GetLimitedCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Limited", - DbFieldName: "limited", - Comment: "机器人是否被封号 0未封号 1已封号", - } -} - -func (m *ModelRobot) GetLogAndOutTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LogAndOutTime", - DbFieldName: "log_and_out_time", - Comment: "登入或者登出都要记录一下", - } -} - -func (m *ModelRobot) GetMobileCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Mobile", - DbFieldName: "mobile", - Comment: "手机号码", - } -} - -func (m *ModelRobot) GetMomentPrivacyTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MomentPrivacyType", - DbFieldName: "moment_privacy_type", - Comment: "朋友圈隐私选项类型", - } -} - -func (m *ModelRobot) GetNickNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "NickName", - DbFieldName: "nick_name", - Comment: "机器人暱称", - } -} - -func (m *ModelRobot) GetNowFriendCore() *core.StructField { - return &core.StructField{ - StructFieldName: "NowFriend", - DbFieldName: "now_friend", - Comment: "机器人当前好友数量", - } -} - -func (m *ModelRobot) GetOpenForStrangerCore() *core.StructField { - return &core.StructField{ - StructFieldName: "OpenForStranger", - DbFieldName: "open_for_stranger", - Comment: "是否允许陌生人查看十条朋友圈", - } -} - -func (m *ModelRobot) GetProvinceCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Province", - DbFieldName: "province", - Comment: "省份", - } -} - -func (m *ModelRobot) GetQrcodeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Qrcode", - DbFieldName: "qrcode", - Comment: "机器人二维码", - } -} - -func (m *ModelRobot) GetRiskControlGroupCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RiskControlGroup", - DbFieldName: "risk_control_group", - Comment: "风控分组", - } -} - -func (m *ModelRobot) GetRiskControlTaskCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RiskControlTask", - DbFieldName: "risk_control_task", - Comment: "风控任务 0是全部,1是回复,2是发消息,3是看朋友圈,4是发朋友圈,5是点赞,6是评论 7是群聊 可组合,如:1,2,3", - } -} - -func (m *ModelRobot) GetSexCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Sex", - DbFieldName: "sex", - Comment: "性别 0 未知 1 男生 2 女生", - } -} - -func (m *ModelRobot) GetSignatureCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Signature", - DbFieldName: "signature", - Comment: "个性签名", - } -} - -func (m *ModelRobot) GetStatusCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Status", - DbFieldName: "status", - Comment: "机器人PC是否在线 10在线 11离线 (兼容之前的pc登录流程和其他接口,这个登录状态不变,补多一个字段代表安卓登录状态)", - } -} - -func (m *ModelRobot) GetTodayRequireTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "TodayRequireTime", - DbFieldName: "today_require_time", - Comment: "当天请求次数", - } -} - -func (m *ModelRobot) GetUpdateTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdateTime", - DbFieldName: "update_time", - Comment: "更新时间", - } -} - -func (m *ModelRobot) GetUserIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserId", - DbFieldName: "user_id", - Comment: "机器人所属用户id", - } -} - -func (m *ModelRobot) GetWechatAliasCore() *core.StructField { - return &core.StructField{ - StructFieldName: "WechatAlias", - DbFieldName: "wechat_alias", - Comment: "微信ID (用户自己定义的微信号)", - } -} - -func (m *ModelRobot) GetWechatIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "WechatId", - DbFieldName: "wechat_id", - Comment: "微信唯一ID (wxidxxxxxx)", - } -} - -func (m *ModelRobotFriend) GetAddAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "AddAt", - DbFieldName: "add_at", - Comment: "添加好友时间只有主动添加好友才有", - } -} - -func (m *ModelRobotFriend) GetCreateTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreateTime", - DbFieldName: "create_time", - Comment: "创建时间:入库时间", - } -} - -func (m *ModelRobotFriend) GetCrmPhoneCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CrmPhone", - DbFieldName: "crm_phone", - Comment: "CRM自己设置的好友手机号,不同于微信手机号", - } -} - -func (m *ModelRobotFriend) GetDeleteTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "DeleteTime", - DbFieldName: "delete_time", - Comment: "删除好友的时间", - } -} - -func (m *ModelRobotFriend) GetDeletedCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Deleted", - DbFieldName: "deleted", - Comment: "是否被删除 0双方未删除 1被好友删除 2删除了好友 3互相删除", - } -} - -func (m *ModelRobotFriend) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID 机器人id+朋友id md5", - } -} - -func (m *ModelRobotFriend) GetOfflineAddCore() *core.StructField { - return &core.StructField{ - StructFieldName: "OfflineAdd", - DbFieldName: "offline_add", - Comment: "是否为离线添加", - } -} - -func (m *ModelRobotFriend) GetPinyinCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Pinyin", - DbFieldName: "pinyin", - Comment: "用户备注或者暱称的拼音", - } -} - -func (m *ModelRobotFriend) GetPinyinHeadCore() *core.StructField { - return &core.StructField{ - StructFieldName: "PinyinHead", - DbFieldName: "pinyin_head", - Comment: "拼音首字母", - } -} - -func (m *ModelRobotFriend) GetRemarkNameCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RemarkName", - DbFieldName: "remark_name", - Comment: "微信好友备注名称", - } -} - -func (m *ModelRobotFriend) GetRobotWechatIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RobotWechatId", - DbFieldName: "robot_wechat_id", - Comment: "机器人编号:微信ID", - } -} - -func (m *ModelRobotFriend) GetUpdateTimeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdateTime", - DbFieldName: "update_time", - Comment: "更新时间", - } -} - -func (m *ModelRobotFriend) GetUserWechatIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserWechatId", - DbFieldName: "user_wechat_id", - Comment: "用户微信ID,", - } -} - -func (m *ModelSchedTask) GetCreatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", - } -} - -func (m *ModelSchedTask) GetExpiredAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ExpiredAt", - DbFieldName: "expired_at", - Comment: "过期时间", - } -} - -func (m *ModelSchedTask) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "任务id", - } -} - -func (m *ModelSchedTask) GetReqIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ReqId", - DbFieldName: "req_id", - Comment: "便于查询该任务 指定的id[作用:有些情况 无法直接通过id来查询该记录]", - } -} - -func (m *ModelSchedTask) GetReqJsonCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ReqJson", - DbFieldName: "req_json", - Comment: "请求内容", - } -} - -func (m *ModelSchedTask) GetRobotWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", - } -} - -func (m *ModelSchedTask) GetRspJsonCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RspJson", - DbFieldName: "rsp_json", - Comment: "完成后的内容 [成功或者失败的返回]", - } -} - -func (m *ModelSchedTask) GetTaskStateCore() *core.StructField { - return &core.StructField{ - StructFieldName: "TaskState", - DbFieldName: "task_state", - Comment: "执行状态 TaskState", - } -} - -func (m *ModelSchedTask) GetTaskTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "TaskType", - DbFieldName: "task_type", - Comment: "任务类型 自定义的名称 用来区别是哪个模块发起的任务", - } -} - -func (m *ModelSchedTask) GetUpdatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", - } -} - -func (m *ModelTbGroupMsgSession) GetAllCore() *core.StructField { - return &core.StructField{ - StructFieldName: "All", - DbFieldName: "all", - Comment: "消息最大游标(消息总数:只算有效的消息)", - } -} - -func (m *ModelTbGroupMsgSession) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "会话ID (md5(机器人id+好友id))", - } -} - -func (m *ModelTbGroupMsgSession) GetLastFriendMsgAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastFriendMsgAt", - DbFieldName: "last_friend_msg_at", - Comment: "接受到最后一条好友消息时间", - } -} - -func (m *ModelTbGroupMsgSession) GetLastFriendMsgIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastFriendMsgId", - DbFieldName: "last_friend_msg_id", - Comment: "接收的最后一条好友消息id", - } -} - -func (m *ModelTbGroupMsgSession) GetLastMemberWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastMemberWxId", - DbFieldName: "last_member_wx_id", - Comment: "最后发送消息的群成员id", - } -} - -func (m *ModelTbGroupMsgSession) GetLastMsgAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastMsgAt", - DbFieldName: "last_msg_at", - Comment: "最后一条消息时间", - } -} - -func (m *ModelTbGroupMsgSession) GetLastMsgIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastMsgId", - DbFieldName: "last_msg_id", - Comment: "最后一条消息id", - } -} - -func (m *ModelTbGroupMsgSession) GetReadCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Read", - DbFieldName: "read", - Comment: "已读游标", - } -} - -func (m *ModelTbGroupMsgSession) GetRobotWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", - } -} - -func (m *ModelTbGroupMsgSession) GetUnreadCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Unread", - DbFieldName: "unread", - Comment: "未读消息游标", - } -} - -func (m *ModelTbGroupMsgSession) GetUserWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "群微信id", - } -} - -func (m *ModelTbPrivateMsgSession) GetAllCore() *core.StructField { - return &core.StructField{ - StructFieldName: "All", - DbFieldName: "all", - Comment: "消息最大游标(消息总数:只算有效的消息)", - } -} - -func (m *ModelTbPrivateMsgSession) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "会话ID (md5(机器人id+好友id))", - } -} - -func (m *ModelTbPrivateMsgSession) GetLastFriendMsgAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastFriendMsgAt", - DbFieldName: "last_friend_msg_at", - Comment: "接受到最后一条好友消息时间", - } -} - -func (m *ModelTbPrivateMsgSession) GetLastFriendMsgIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastFriendMsgId", - DbFieldName: "last_friend_msg_id", - Comment: "接收的最后一条好友消息id", - } -} - -func (m *ModelTbPrivateMsgSession) GetLastMsgAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastMsgAt", - DbFieldName: "last_msg_at", - Comment: "最后一条消息时间", - } -} - -func (m *ModelTbPrivateMsgSession) GetLastMsgIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LastMsgId", - DbFieldName: "last_msg_id", - Comment: "最后一条消息id", - } -} - -func (m *ModelTbPrivateMsgSession) GetReadCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Read", - DbFieldName: "read", - Comment: "已读游标", - } -} - -func (m *ModelTbPrivateMsgSession) GetRobotWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", - } -} - -func (m *ModelTbPrivateMsgSession) GetUnreadCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Unread", - DbFieldName: "unread", - Comment: "未读消息游标", - } -} - -func (m *ModelTbPrivateMsgSession) GetUserWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "好友微信id", - } -} - -func (m *ModelTbRobotGroupMsg) GetBindIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "BindId", - DbFieldName: "bind_id", - Comment: "前端消息id", - } -} - -func (m *ModelTbRobotGroupMsg) GetCallBackAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CallBackAt", - DbFieldName: "call_back_at", - Comment: "消息返回时间", - } -} - -func (m *ModelTbRobotGroupMsg) GetContentDataCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ContentData", - DbFieldName: "content_data", - Comment: "消息内容", - } -} - -func (m *ModelTbRobotGroupMsg) GetContentReadCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ContentRead", - DbFieldName: "content_read", - Comment: "是否内容被浏览(像语音之类的,需要浏览)", - } -} - -func (m *ModelTbRobotGroupMsg) GetCreatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", - } -} - -func (m *ModelTbRobotGroupMsg) GetCursorCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Cursor", - DbFieldName: "cursor", - Comment: "消息游标(对应session的all)", - } -} - -func (m *ModelTbRobotGroupMsg) GetDirectCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Direct", - DbFieldName: "direct", - Comment: "用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送", - } -} - -func (m *ModelTbRobotGroupMsg) GetExpireAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ExpireAt", - DbFieldName: "expire_at", - Comment: "失效时间(用于消息的失效)", - } -} - -func (m *ModelTbRobotGroupMsg) GetFailReasonCore() *core.StructField { - return &core.StructField{ - StructFieldName: "FailReason", - DbFieldName: "fail_reason", - Comment: "失败原因", - } -} - -func (m *ModelTbRobotGroupMsg) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID", - } -} - -func (m *ModelTbRobotGroupMsg) GetMsgIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MsgId", - DbFieldName: "msg_id", - Comment: "服务端自己生成一个消息id,来对应客户端的发送结果id", - } -} - -func (m *ModelTbRobotGroupMsg) GetMsgTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MsgType", - DbFieldName: "msg_type", - Comment: "消息类型", - } -} - -func (m *ModelTbRobotGroupMsg) GetRobotWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", - } -} - -func (m *ModelTbRobotGroupMsg) GetSendAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SendAt", - DbFieldName: "send_at", - Comment: "发送时间(消息实际生效时间)", - } -} - -func (m *ModelTbRobotGroupMsg) GetSendErrorCodeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SendErrorCode", - DbFieldName: "send_error_code", - Comment: "发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3", - } -} - -func (m *ModelTbRobotGroupMsg) GetSendStatusCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SendStatus", - DbFieldName: "send_status", - Comment: "发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3", - } -} - -func (m *ModelTbRobotGroupMsg) GetSenderWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SenderWxId", - DbFieldName: "sender_wx_id", - Comment: "发送者id", - } -} - -func (m *ModelTbRobotGroupMsg) GetUpdatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", - } -} - -func (m *ModelTbRobotGroupMsg) GetUserWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "群聊id", - } -} - -func (m *ModelTbRobotPrivateMsg) GetBindIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "BindId", - DbFieldName: "bind_id", - Comment: "前端消息id", - } -} - -func (m *ModelTbRobotPrivateMsg) GetCallBackAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CallBackAt", - DbFieldName: "call_back_at", - Comment: "消息返回时间", - } -} - -func (m *ModelTbRobotPrivateMsg) GetContentDataCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ContentData", - DbFieldName: "content_data", - Comment: "消息内容", - } -} - -func (m *ModelTbRobotPrivateMsg) GetContentReadCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ContentRead", - DbFieldName: "content_read", - Comment: "是否内容被浏览(像语音之类的,需要浏览)", - } -} - -func (m *ModelTbRobotPrivateMsg) GetCreatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", - } -} - -func (m *ModelTbRobotPrivateMsg) GetCursorCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Cursor", - DbFieldName: "cursor", - Comment: "消息游标(对应session的all)", - } -} - -func (m *ModelTbRobotPrivateMsg) GetDirectCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Direct", - DbFieldName: "direct", - Comment: "用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送", - } -} - -func (m *ModelTbRobotPrivateMsg) GetExpireAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ExpireAt", - DbFieldName: "expire_at", - Comment: "失效时间(用于消息的失效)", - } -} - -func (m *ModelTbRobotPrivateMsg) GetFailReasonCore() *core.StructField { - return &core.StructField{ - StructFieldName: "FailReason", - DbFieldName: "fail_reason", - Comment: "失败原因", - } -} - -func (m *ModelTbRobotPrivateMsg) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID", - } -} - -func (m *ModelTbRobotPrivateMsg) GetMsgIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MsgId", - DbFieldName: "msg_id", - Comment: "服务端自己生成一个消息id,来对应客户端的发送结果id", - } -} - -func (m *ModelTbRobotPrivateMsg) GetMsgTypeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "MsgType", - DbFieldName: "msg_type", - Comment: "消息类型", - } -} - -func (m *ModelTbRobotPrivateMsg) GetRobotWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", - } -} - -func (m *ModelTbRobotPrivateMsg) GetSendAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SendAt", - DbFieldName: "send_at", - Comment: "发送时间(消息实际生效时间)", - } -} - -func (m *ModelTbRobotPrivateMsg) GetSendErrorCodeCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SendErrorCode", - DbFieldName: "send_error_code", - Comment: "发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3", - } -} - -func (m *ModelTbRobotPrivateMsg) GetSendStatusCore() *core.StructField { - return &core.StructField{ - StructFieldName: "SendStatus", - DbFieldName: "send_status", - Comment: "发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3", - } -} - -func (m *ModelTbRobotPrivateMsg) GetUpdatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", - } -} - -func (m *ModelTbRobotPrivateMsg) GetUserWxIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "好友id", - } -} - -func (m *ModelWsConnectRecord) GetBindIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "BindId", - DbFieldName: "bind_id", - Comment: "该ws绑定的id", - } -} - -func (m *ModelWsConnectRecord) GetCreatedAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "记录创建时间", - } -} - -func (m *ModelWsConnectRecord) GetExpiredAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "ExpiredAt", - DbFieldName: "expired_at", - Comment: "过期时间", - } -} - -func (m *ModelWsConnectRecord) GetIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID wxid md5", - } -} - -func (m *ModelWsConnectRecord) GetLoginAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LoginAt", - DbFieldName: "login_at", - Comment: "登录时间", - } -} - -func (m *ModelWsConnectRecord) GetLogoutAtCore() *core.StructField { - return &core.StructField{ - StructFieldName: "LogoutAt", - DbFieldName: "logout_at", - Comment: "登出时间", - } -} - -func (m *ModelWsConnectRecord) GetUserIdCore() *core.StructField { - return &core.StructField{ - StructFieldName: "UserId", - DbFieldName: "user_id", - Comment: "机器人所属用户id", - } -} - - -var AtMsgItemField_Content = core.StructField{ - StructFieldName: "Content", - DbFieldName: "content", - Comment: "文本内容", -} - -var AtMsgItemField_NickName = core.StructField{ - StructFieldName: "NickName", - DbFieldName: "nick_name", - Comment: "@的昵称", -} - -var AtMsgItemField_SubType = core.StructField{ - StructFieldName: "SubType", - DbFieldName: "sub_type", - Comment: "0:文本内容,1:@某人", -} - -var AtMsgItemField_UserName = core.StructField{ - StructFieldName: "UserName", - DbFieldName: "user_name", - Comment: "@的用户(wx_id)", -} - -var ContentDataField_AtMsgItem = core.StructField{ - StructFieldName: "AtMsgItem", - DbFieldName: "at_msg_item", - Comment: "发送群@部分人消息的数据", -} - -var ContentDataField_AtUserName = core.StructField{ - StructFieldName: "AtUserName", - DbFieldName: "at_user_name", - Comment: "群聊at消息", -} - -var ContentDataField_Content = core.StructField{ - StructFieldName: "Content", - DbFieldName: "content", - Comment: "1文本的内容;2 语音的url(amr格式);6小程序的xml;", -} - -var ContentDataField_FileSize = core.StructField{ - StructFieldName: "FileSize", - DbFieldName: "file_size", - Comment: "文件大小KB单位", -} - -var ContentDataField_FileUrl = core.StructField{ - StructFieldName: "FileUrl", - DbFieldName: "file_url", - Comment: "3图片的url;4视频的Url;5链接的分享图;8表情的url(gif);9文件的url;", -} - -var ContentDataField_IsAtMyself = core.StructField{ - StructFieldName: "IsAtMyself", - DbFieldName: "is_at_myself", - Comment: "是否有at我自己 单独一个字段 方便维护和查询", -} - -var ContentDataField_RawContent = core.StructField{ - StructFieldName: "RawContent", - DbFieldName: "raw_content", - Comment: "元始的xml数据 做数据转发时用;", -} - -var ContentDataField_ResourceDuration = core.StructField{ - StructFieldName: "ResourceDuration", - DbFieldName: "resource_duration", - Comment: "媒体时长 统一单位s", -} - -var ContentDataField_ShareDesc = core.StructField{ - StructFieldName: "ShareDesc", - DbFieldName: "share_desc", - Comment: "5链接的描述;", -} - -var ContentDataField_ShareNickName = core.StructField{ - StructFieldName: "ShareNickName", - DbFieldName: "share_nick_name", - Comment: "7名片的被分享(名片)的昵称;", -} - -var ContentDataField_ShareTitle = core.StructField{ - StructFieldName: "ShareTitle", - DbFieldName: "share_title", - Comment: "5链接的标题;", -} - -var ContentDataField_ShareUrl = core.StructField{ - StructFieldName: "ShareUrl", - DbFieldName: "share_url", - Comment: "5链接的URL;", -} - -var ContentDataField_ShareUserName = core.StructField{ - StructFieldName: "ShareUserName", - DbFieldName: "share_user_name", - Comment: "7名片的被分享(名片)好友id;", -} - -var ContentDataField_WxMsgType = core.StructField{ - StructFieldName: "WxMsgType", - DbFieldName: "wx_msg_type", - Comment: "消息类型: 1 文本;2 语音;3 图片;4 视频;5 链接;6 小程序;7", -} - -var ModelFriendInfoField_AvatarUrl = core.StructField{ - StructFieldName: "AvatarUrl", - DbFieldName: "avatar_url", - Comment: "用户头像", -} - -var ModelFriendInfoField_City = core.StructField{ - StructFieldName: "City", - DbFieldName: "city", - Comment: "城市", -} - -var ModelFriendInfoField_Country = core.StructField{ - StructFieldName: "Country", - DbFieldName: "country", - Comment: "国家", -} - -var ModelFriendInfoField_CreateTime = core.StructField{ - StructFieldName: "CreateTime", - DbFieldName: "create_time", - Comment: "创建时间", -} - -var ModelFriendInfoField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID wxid md5", -} - -var ModelFriendInfoField_Nickname = core.StructField{ - StructFieldName: "Nickname", - DbFieldName: "nick_name", - Comment: "用户暱称", -} - -var ModelFriendInfoField_Phone = core.StructField{ - StructFieldName: "Phone", - DbFieldName: "phone", - Comment: "手机号码", -} - -var ModelFriendInfoField_Province = core.StructField{ - StructFieldName: "Province", - DbFieldName: "province", - Comment: "省份", -} - -var ModelFriendInfoField_Sex = core.StructField{ - StructFieldName: "Sex", - DbFieldName: "sex", - Comment: "0未知 1男 2女", -} - -var ModelFriendInfoField_UpdateTime = core.StructField{ - StructFieldName: "UpdateTime", - DbFieldName: "update_time", - Comment: "更新时间", -} - -var ModelFriendInfoField_WechatAlias = core.StructField{ - StructFieldName: "WechatAlias", - DbFieldName: "wechat_alias", - Comment: "用户微信号", -} - -var ModelFriendInfoField_WechatId = core.StructField{ - StructFieldName: "WechatId", - DbFieldName: "wechat_id", - Comment: "用户微信ID", -} - -var ModelGroupChatField_AdminType = core.StructField{ - StructFieldName: "AdminType", - DbFieldName: "admin_type", - Comment: "机器人权限类型", -} - -var ModelGroupChatField_CreatedAt = core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", -} - -var ModelGroupChatField_DeletedAt = core.StructField{ - StructFieldName: "DeletedAt", - DbFieldName: "deleted_at", - Comment: "删除时间【记: 此表正常情况下 只进行软删除】非零 历史群 0正常群", -} - -var ModelGroupChatField_DisableInvite = core.StructField{ - StructFieldName: "DisableInvite", - DbFieldName: "disable_invite", - Comment: "是否开启了群聊邀请确认 true 开启了 false 关闭了", -} - -var ModelGroupChatField_GroupAvatarUrl = core.StructField{ - StructFieldName: "GroupAvatarUrl", - DbFieldName: "group_avatar_url", - Comment: "群头像", -} - -var ModelGroupChatField_GroupName = core.StructField{ - StructFieldName: "GroupName", - DbFieldName: "group_name", - Comment: "群名称", -} - -var ModelGroupChatField_GroupWxId = core.StructField{ - StructFieldName: "GroupWxId", - DbFieldName: "group_wx_id", - Comment: "群id", -} - -var ModelGroupChatField_HasBeenWatch = core.StructField{ - StructFieldName: "HasBeenWatch", - DbFieldName: "has_been_watch", - Comment: "以前有关注过", -} - -var ModelGroupChatField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID", -} - -var ModelGroupChatField_InContact = core.StructField{ - StructFieldName: "InContact", - DbFieldName: "in_contact", - Comment: "是否在通讯录中", -} - -var ModelGroupChatField_IsDefaultGroupName = core.StructField{ - StructFieldName: "IsDefaultGroupName", - DbFieldName: "is_default_group_name", - Comment: "是否是默认的群名称", -} - -var ModelGroupChatField_IsWatch = core.StructField{ - StructFieldName: "IsWatch", - DbFieldName: "is_watch", - Comment: "是否关注群", -} - -var ModelGroupChatField_LastSyncAt = core.StructField{ - StructFieldName: "LastSyncAt", - DbFieldName: "last_sync_at", - Comment: "最后更新群信息时间 【通过这里 指定规则 去拉群基本信息】", -} - -var ModelGroupChatField_LastSyncMemberAt = core.StructField{ - StructFieldName: "LastSyncMemberAt", - DbFieldName: "last_sync_member_at", - Comment: "最后更新群成员时间 【通过这里 指定规则 去拉群成员信息】", -} - -var ModelGroupChatField_MemberCount = core.StructField{ - StructFieldName: "MemberCount", - DbFieldName: "member_count", - Comment: "群成员数量", -} - -var ModelGroupChatField_Notice = core.StructField{ - StructFieldName: "Notice", - DbFieldName: "notice", - Comment: "群公告", -} - -var ModelGroupChatField_OwnerName = core.StructField{ - StructFieldName: "OwnerName", - DbFieldName: "owner_name", - Comment: "群主名称", -} - -var ModelGroupChatField_OwnerWxId = core.StructField{ - StructFieldName: "OwnerWxId", - DbFieldName: "owner_wx_id", - Comment: "群主id", -} - -var ModelGroupChatField_QrcodeUpdatedAt = core.StructField{ - StructFieldName: "QrcodeUpdatedAt", - DbFieldName: "qrcode_updated_at", - Comment: "群聊二维码更新时间", -} - -var ModelGroupChatField_QrcodeUrl = core.StructField{ - StructFieldName: "QrcodeUrl", - DbFieldName: "qrcode_url", - Comment: "群聊二维码", -} - -var ModelGroupChatField_RobotWxId = core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", -} - -var ModelGroupChatField_UpdatedAt = core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", -} - -var ModelGroupChatMemberField_AdminType = core.StructField{ - StructFieldName: "AdminType", - DbFieldName: "admin_type", - Comment: "权限类型 群主 管理员 普通成员", -} - -var ModelGroupChatMemberField_CreatedAt = core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", -} - -var ModelGroupChatMemberField_DeletedAt = core.StructField{ - StructFieldName: "DeletedAt", - DbFieldName: "deleted_at", - Comment: "删除时间 这个表一般直接硬删除", -} - -var ModelGroupChatMemberField_GroupChatId = core.StructField{ - StructFieldName: "GroupChatId", - DbFieldName: "group_chat_id", - Comment: "群 ModelGroupChat 的ID", -} - -var ModelGroupChatMemberField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "id", -} - -var ModelGroupChatMemberField_IsRobot = core.StructField{ - StructFieldName: "IsRobot", - DbFieldName: "is_robot", - Comment: "是否是机器人", -} - -var ModelGroupChatMemberField_LastSyncAt = core.StructField{ - StructFieldName: "LastSyncAt", - DbFieldName: "last_sync_at", - Comment: "该群该成员 最后更新时间", -} - -var ModelGroupChatMemberField_MemberAlias = core.StructField{ - StructFieldName: "MemberAlias", - DbFieldName: "member_alias", - Comment: "群昵称", -} - -var ModelGroupChatMemberField_MemberAvatar = core.StructField{ - StructFieldName: "MemberAvatar", - DbFieldName: "member_avatar", - Comment: "群成员头像", -} - -var ModelGroupChatMemberField_MemberName = core.StructField{ - StructFieldName: "MemberName", - DbFieldName: "member_name", - Comment: "群成员名称", -} - -var ModelGroupChatMemberField_MemberSex = core.StructField{ - StructFieldName: "MemberSex", - DbFieldName: "member_sex", - Comment: "性别", -} - -var ModelGroupChatMemberField_MemberWxId = core.StructField{ - StructFieldName: "MemberWxId", - DbFieldName: "member_wx_id", - Comment: "群成员微信id", -} - -var ModelGroupChatMemberField_UpdatedAt = core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", -} - -var ModelRobotField_AbilityLimit = core.StructField{ - StructFieldName: "AbilityLimit", - DbFieldName: "ability_limit", - Comment: "机器人是否功能受限", -} - -var ModelRobotField_AliasName = core.StructField{ - StructFieldName: "AliasName", - DbFieldName: "alias_name", - Comment: "微信号", -} - -var ModelRobotField_AndroidStatus = core.StructField{ - StructFieldName: "AndroidStatus", - DbFieldName: "android_status", - Comment: "机器人Android是否在线 10在线 11离线", -} - -var ModelRobotField_AndroidWechatVersion = core.StructField{ - StructFieldName: "AndroidWechatVersion", - DbFieldName: "android_wechat_version", - Comment: "微信版本", -} - -var ModelRobotField_AutoAddFriend = core.StructField{ - StructFieldName: "AutoAddFriend", - DbFieldName: "auto_add_friend", - Comment: "机器人是否自动通过好友请求 0否 1是", -} - -var ModelRobotField_AvatarUrl = core.StructField{ - StructFieldName: "AvatarUrl", - DbFieldName: "avatar_url", - Comment: "机器人头像", -} - -var ModelRobotField_City = core.StructField{ - StructFieldName: "City", - DbFieldName: "city", - Comment: "城市", -} - -var ModelRobotField_Country = core.StructField{ - StructFieldName: "Country", - DbFieldName: "country", - Comment: "国家", -} - -var ModelRobotField_CoverUrl = core.StructField{ - StructFieldName: "CoverUrl", - DbFieldName: "cover_url", - Comment: "朋友圈封面url", -} - -var ModelRobotField_CreateTime = core.StructField{ - StructFieldName: "CreateTime", - DbFieldName: "create_time", - Comment: "创建时间", -} - -var ModelRobotField_CrmAutoAddFriend = core.StructField{ - StructFieldName: "CrmAutoAddFriend", - DbFieldName: "crm_auto_add_friend", - Comment: "crm系统自动通过好友 1自动通过 0不自动通过", -} - -var ModelRobotField_CrmShopId = core.StructField{ - StructFieldName: "CrmShopId", - DbFieldName: "crm_shop_id", - Comment: "机器人所属商户id", -} - -var ModelRobotField_DeleteTime = core.StructField{ - StructFieldName: "DeleteTime", - DbFieldName: "delete_time", - Comment: "删除时间", -} - -var ModelRobotField_GreetId = core.StructField{ - StructFieldName: "GreetId", - DbFieldName: "greet_id", - Comment: "打招呼模板id", -} - -var ModelRobotField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID wxid md5", -} - -var ModelRobotField_InitFriend = core.StructField{ - StructFieldName: "InitFriend", - DbFieldName: "init_friend", - Comment: "机器人初始好友人数", -} - -var ModelRobotField_LastAndroidLoginAt = core.StructField{ - StructFieldName: "LastAndroidLoginAt", - DbFieldName: "last_android_login_at", - Comment: "最近安卓登录时间", -} - -var ModelRobotField_LastAndroidLogoutAt = core.StructField{ - StructFieldName: "LastAndroidLogoutAt", - DbFieldName: "last_android_logout_at", - Comment: "最近安卓登出时间", -} - -var ModelRobotField_LastCity = core.StructField{ - StructFieldName: "LastCity", - DbFieldName: "last_city", - Comment: "最后登录的城市名称", -} - -var ModelRobotField_LastLogOutTime = core.StructField{ - StructFieldName: "LastLogOutTime", - DbFieldName: "last_log_out_time", - Comment: "最后登出时间", -} - -var ModelRobotField_LastLoginTime = core.StructField{ - StructFieldName: "LastLoginTime", - DbFieldName: "last_login_time", - Comment: "最后登录时间", -} - -var ModelRobotField_LastPcLoginAt = core.StructField{ - StructFieldName: "LastPcLoginAt", - DbFieldName: "last_pc_login_at", - Comment: "最近PC登录时间", -} - -var ModelRobotField_LastPcLogoutAt = core.StructField{ - StructFieldName: "LastPcLogoutAt", - DbFieldName: "last_pc_logout_at", - Comment: "最近PC登出时间", -} - -var ModelRobotField_LastRegionCode = core.StructField{ - StructFieldName: "LastRegionCode", - DbFieldName: "last_region_code", - Comment: "最后登录的扫码设备的地区编码", -} - -var ModelRobotField_LastRequireAddFriendTime = core.StructField{ - StructFieldName: "LastRequireAddFriendTime", - DbFieldName: "last_require_add_friend_time", - Comment: "上一次请求添加好友的时间", -} - -var ModelRobotField_Limited = core.StructField{ - StructFieldName: "Limited", - DbFieldName: "limited", - Comment: "机器人是否被封号 0未封号 1已封号", -} - -var ModelRobotField_LogAndOutTime = core.StructField{ - StructFieldName: "LogAndOutTime", - DbFieldName: "log_and_out_time", - Comment: "登入或者登出都要记录一下", -} - -var ModelRobotField_Mobile = core.StructField{ - StructFieldName: "Mobile", - DbFieldName: "mobile", - Comment: "手机号码", -} - -var ModelRobotField_MomentPrivacyType = core.StructField{ - StructFieldName: "MomentPrivacyType", - DbFieldName: "moment_privacy_type", - Comment: "朋友圈隐私选项类型", -} - -var ModelRobotField_NickName = core.StructField{ - StructFieldName: "NickName", - DbFieldName: "nick_name", - Comment: "机器人暱称", -} - -var ModelRobotField_NowFriend = core.StructField{ - StructFieldName: "NowFriend", - DbFieldName: "now_friend", - Comment: "机器人当前好友数量", -} - -var ModelRobotField_OpenForStranger = core.StructField{ - StructFieldName: "OpenForStranger", - DbFieldName: "open_for_stranger", - Comment: "是否允许陌生人查看十条朋友圈", -} - -var ModelRobotField_Province = core.StructField{ - StructFieldName: "Province", - DbFieldName: "province", - Comment: "省份", -} - -var ModelRobotField_Qrcode = core.StructField{ - StructFieldName: "Qrcode", - DbFieldName: "qrcode", - Comment: "机器人二维码", -} - -var ModelRobotField_RiskControlGroup = core.StructField{ - StructFieldName: "RiskControlGroup", - DbFieldName: "risk_control_group", - Comment: "风控分组", -} - -var ModelRobotField_RiskControlTask = core.StructField{ - StructFieldName: "RiskControlTask", - DbFieldName: "risk_control_task", - Comment: "风控任务 0是全部,1是回复,2是发消息,3是看朋友圈,4是发朋友圈,5是点赞,6是评论 7是群聊 可组合,如:1,2,3", -} - -var ModelRobotField_Sex = core.StructField{ - StructFieldName: "Sex", - DbFieldName: "sex", - Comment: "性别 0 未知 1 男生 2 女生", -} - -var ModelRobotField_Signature = core.StructField{ - StructFieldName: "Signature", - DbFieldName: "signature", - Comment: "个性签名", -} - -var ModelRobotField_Status = core.StructField{ - StructFieldName: "Status", - DbFieldName: "status", - Comment: "机器人PC是否在线 10在线 11离线 (兼容之前的pc登录流程和其他接口,这个登录状态不变,补多一个字段代表安卓登录状态)", -} - -var ModelRobotField_TodayRequireTime = core.StructField{ - StructFieldName: "TodayRequireTime", - DbFieldName: "today_require_time", - Comment: "当天请求次数", -} - -var ModelRobotField_UpdateTime = core.StructField{ - StructFieldName: "UpdateTime", - DbFieldName: "update_time", - Comment: "更新时间", -} - -var ModelRobotField_UserId = core.StructField{ - StructFieldName: "UserId", - DbFieldName: "user_id", - Comment: "机器人所属用户id", -} - -var ModelRobotField_WechatAlias = core.StructField{ - StructFieldName: "WechatAlias", - DbFieldName: "wechat_alias", - Comment: "微信ID (用户自己定义的微信号)", -} - -var ModelRobotField_WechatId = core.StructField{ - StructFieldName: "WechatId", - DbFieldName: "wechat_id", - Comment: "微信唯一ID (wxidxxxxxx)", -} - -var ModelRobotFriendField_AddAt = core.StructField{ - StructFieldName: "AddAt", - DbFieldName: "add_at", - Comment: "添加好友时间只有主动添加好友才有", -} - -var ModelRobotFriendField_CreateTime = core.StructField{ - StructFieldName: "CreateTime", - DbFieldName: "create_time", - Comment: "创建时间:入库时间", -} - -var ModelRobotFriendField_CrmPhone = core.StructField{ - StructFieldName: "CrmPhone", - DbFieldName: "crm_phone", - Comment: "CRM自己设置的好友手机号,不同于微信手机号", -} - -var ModelRobotFriendField_DeleteTime = core.StructField{ - StructFieldName: "DeleteTime", - DbFieldName: "delete_time", - Comment: "删除好友的时间", -} - -var ModelRobotFriendField_Deleted = core.StructField{ - StructFieldName: "Deleted", - DbFieldName: "deleted", - Comment: "是否被删除 0双方未删除 1被好友删除 2删除了好友 3互相删除", -} - -var ModelRobotFriendField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID 机器人id+朋友id md5", -} - -var ModelRobotFriendField_OfflineAdd = core.StructField{ - StructFieldName: "OfflineAdd", - DbFieldName: "offline_add", - Comment: "是否为离线添加", -} - -var ModelRobotFriendField_Pinyin = core.StructField{ - StructFieldName: "Pinyin", - DbFieldName: "pinyin", - Comment: "用户备注或者暱称的拼音", -} - -var ModelRobotFriendField_PinyinHead = core.StructField{ - StructFieldName: "PinyinHead", - DbFieldName: "pinyin_head", - Comment: "拼音首字母", -} - -var ModelRobotFriendField_RemarkName = core.StructField{ - StructFieldName: "RemarkName", - DbFieldName: "remark_name", - Comment: "微信好友备注名称", -} - -var ModelRobotFriendField_RobotWechatId = core.StructField{ - StructFieldName: "RobotWechatId", - DbFieldName: "robot_wechat_id", - Comment: "机器人编号:微信ID", -} - -var ModelRobotFriendField_UpdateTime = core.StructField{ - StructFieldName: "UpdateTime", - DbFieldName: "update_time", - Comment: "更新时间", -} - -var ModelRobotFriendField_UserWechatId = core.StructField{ - StructFieldName: "UserWechatId", - DbFieldName: "user_wechat_id", - Comment: "用户微信ID,", -} - -var ModelSchedTaskField_CreatedAt = core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", -} - -var ModelSchedTaskField_ExpiredAt = core.StructField{ - StructFieldName: "ExpiredAt", - DbFieldName: "expired_at", - Comment: "过期时间", -} - -var ModelSchedTaskField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "任务id", -} - -var ModelSchedTaskField_ReqId = core.StructField{ - StructFieldName: "ReqId", - DbFieldName: "req_id", - Comment: "便于查询该任务 指定的id[作用:有些情况 无法直接通过id来查询该记录]", -} - -var ModelSchedTaskField_ReqJson = core.StructField{ - StructFieldName: "ReqJson", - DbFieldName: "req_json", - Comment: "请求内容", -} - -var ModelSchedTaskField_RobotWxId = core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", -} - -var ModelSchedTaskField_RspJson = core.StructField{ - StructFieldName: "RspJson", - DbFieldName: "rsp_json", - Comment: "完成后的内容 [成功或者失败的返回]", -} - -var ModelSchedTaskField_TaskState = core.StructField{ - StructFieldName: "TaskState", - DbFieldName: "task_state", - Comment: "执行状态 TaskState", -} - -var ModelSchedTaskField_TaskType = core.StructField{ - StructFieldName: "TaskType", - DbFieldName: "task_type", - Comment: "任务类型 自定义的名称 用来区别是哪个模块发起的任务", -} - -var ModelSchedTaskField_UpdatedAt = core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", -} - -var ModelTbGroupMsgSessionField_All = core.StructField{ - StructFieldName: "All", - DbFieldName: "all", - Comment: "消息最大游标(消息总数:只算有效的消息)", -} - -var ModelTbGroupMsgSessionField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "会话ID (md5(机器人id+好友id))", -} - -var ModelTbGroupMsgSessionField_LastFriendMsgAt = core.StructField{ - StructFieldName: "LastFriendMsgAt", - DbFieldName: "last_friend_msg_at", - Comment: "接受到最后一条好友消息时间", -} - -var ModelTbGroupMsgSessionField_LastFriendMsgId = core.StructField{ - StructFieldName: "LastFriendMsgId", - DbFieldName: "last_friend_msg_id", - Comment: "接收的最后一条好友消息id", -} - -var ModelTbGroupMsgSessionField_LastMemberWxId = core.StructField{ - StructFieldName: "LastMemberWxId", - DbFieldName: "last_member_wx_id", - Comment: "最后发送消息的群成员id", -} - -var ModelTbGroupMsgSessionField_LastMsgAt = core.StructField{ - StructFieldName: "LastMsgAt", - DbFieldName: "last_msg_at", - Comment: "最后一条消息时间", -} - -var ModelTbGroupMsgSessionField_LastMsgId = core.StructField{ - StructFieldName: "LastMsgId", - DbFieldName: "last_msg_id", - Comment: "最后一条消息id", -} - -var ModelTbGroupMsgSessionField_Read = core.StructField{ - StructFieldName: "Read", - DbFieldName: "read", - Comment: "已读游标", -} - -var ModelTbGroupMsgSessionField_RobotWxId = core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", -} - -var ModelTbGroupMsgSessionField_Unread = core.StructField{ - StructFieldName: "Unread", - DbFieldName: "unread", - Comment: "未读消息游标", -} - -var ModelTbGroupMsgSessionField_UserWxId = core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "群微信id", -} - -var ModelTbPrivateMsgSessionField_All = core.StructField{ - StructFieldName: "All", - DbFieldName: "all", - Comment: "消息最大游标(消息总数:只算有效的消息)", -} - -var ModelTbPrivateMsgSessionField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "会话ID (md5(机器人id+好友id))", +func (m *ModelWsConnectRecord) GetIdField() string { + return "_id" } -var ModelTbPrivateMsgSessionField_LastFriendMsgAt = core.StructField{ - StructFieldName: "LastFriendMsgAt", - DbFieldName: "last_friend_msg_at", - Comment: "接受到最后一条好友消息时间", +func (m *ModelWsConnectRecord) GetUserIdField() string { + return "user_id" } -var ModelTbPrivateMsgSessionField_LastFriendMsgId = core.StructField{ - StructFieldName: "LastFriendMsgId", - DbFieldName: "last_friend_msg_id", - Comment: "接收的最后一条好友消息id", +func (m *ModelWsConnectRecord) GetCreatedAtField() string { + return "created_at" } -var ModelTbPrivateMsgSessionField_LastMsgAt = core.StructField{ - StructFieldName: "LastMsgAt", - DbFieldName: "last_msg_at", - Comment: "最后一条消息时间", +func (m *ModelWsConnectRecord) GetLoginAtField() string { + return "login_at" } -var ModelTbPrivateMsgSessionField_LastMsgId = core.StructField{ - StructFieldName: "LastMsgId", - DbFieldName: "last_msg_id", - Comment: "最后一条消息id", +func (m *ModelWsConnectRecord) GetLogoutAtField() string { + return "logout_at" } -var ModelTbPrivateMsgSessionField_Read = core.StructField{ - StructFieldName: "Read", - DbFieldName: "read", - Comment: "已读游标", +func (m *ModelWsConnectRecord) GetBindIdField() string { + return "bind_id" } -var ModelTbPrivateMsgSessionField_RobotWxId = core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", +func (m *ModelWsConnectRecord) GetExpiredAtField() string { + return "expired_at" } -var ModelTbPrivateMsgSessionField_Unread = core.StructField{ - StructFieldName: "Unread", - DbFieldName: "unread", - Comment: "未读消息游标", -} +const TableNameModelRobot = "tb_robot" -var ModelTbPrivateMsgSessionField_UserWxId = core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "好友微信id", +func (t *ModelRobot) TableName() string { + return "tb_robot" } -var ModelTbRobotGroupMsgField_BindId = core.StructField{ - StructFieldName: "BindId", - DbFieldName: "bind_id", - Comment: "前端消息id", +func (m *ModelRobot) GetIdField() string { + return "_id" } -var ModelTbRobotGroupMsgField_CallBackAt = core.StructField{ - StructFieldName: "CallBackAt", - DbFieldName: "call_back_at", - Comment: "消息返回时间", +func (m *ModelRobot) GetUserIdField() string { + return "user_id" } -var ModelTbRobotGroupMsgField_ContentData = core.StructField{ - StructFieldName: "ContentData", - DbFieldName: "content_data", - Comment: "消息内容", +func (m *ModelRobot) GetCrmShopIdField() string { + return "crm_shop_id" } -var ModelTbRobotGroupMsgField_ContentRead = core.StructField{ - StructFieldName: "ContentRead", - DbFieldName: "content_read", - Comment: "是否内容被浏览(像语音之类的,需要浏览)", +func (m *ModelRobot) GetAliasNameField() string { + return "alias_name" } -var ModelTbRobotGroupMsgField_CreatedAt = core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", +func (m *ModelRobot) GetNickNameField() string { + return "nick_name" } -var ModelTbRobotGroupMsgField_Cursor = core.StructField{ - StructFieldName: "Cursor", - DbFieldName: "cursor", - Comment: "消息游标(对应session的all)", +func (m *ModelRobot) GetWechatIdField() string { + return "wechat_id" } -var ModelTbRobotGroupMsgField_Direct = core.StructField{ - StructFieldName: "Direct", - DbFieldName: "direct", - Comment: "用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送", +func (m *ModelRobot) GetWechatAliasField() string { + return "wechat_alias" } -var ModelTbRobotGroupMsgField_ExpireAt = core.StructField{ - StructFieldName: "ExpireAt", - DbFieldName: "expire_at", - Comment: "失效时间(用于消息的失效)", +func (m *ModelRobot) GetAvatarUrlField() string { + return "avatar_url" } -var ModelTbRobotGroupMsgField_FailReason = core.StructField{ - StructFieldName: "FailReason", - DbFieldName: "fail_reason", - Comment: "失败原因", +func (m *ModelRobot) GetSexField() string { + return "sex" } -var ModelTbRobotGroupMsgField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID", +func (m *ModelRobot) GetMobileField() string { + return "mobile" } -var ModelTbRobotGroupMsgField_MsgId = core.StructField{ - StructFieldName: "MsgId", - DbFieldName: "msg_id", - Comment: "服务端自己生成一个消息id,来对应客户端的发送结果id", +func (m *ModelRobot) GetQrcodeField() string { + return "qrcode" } -var ModelTbRobotGroupMsgField_MsgType = core.StructField{ - StructFieldName: "MsgType", - DbFieldName: "msg_type", - Comment: "消息类型", +func (m *ModelRobot) GetStatusField() string { + return "status" } -var ModelTbRobotGroupMsgField_RobotWxId = core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", +func (m *ModelRobot) GetLimitedField() string { + return "limited" } -var ModelTbRobotGroupMsgField_SendAt = core.StructField{ - StructFieldName: "SendAt", - DbFieldName: "send_at", - Comment: "发送时间(消息实际生效时间)", +func (m *ModelRobot) GetAbilityLimitField() string { + return "ability_limit" } -var ModelTbRobotGroupMsgField_SendErrorCode = core.StructField{ - StructFieldName: "SendErrorCode", - DbFieldName: "send_error_code", - Comment: "发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3", +func (m *ModelRobot) GetInitFriendField() string { + return "init_friend" } -var ModelTbRobotGroupMsgField_SendStatus = core.StructField{ - StructFieldName: "SendStatus", - DbFieldName: "send_status", - Comment: "发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3", +func (m *ModelRobot) GetNowFriendField() string { + return "now_friend" } -var ModelTbRobotGroupMsgField_SenderWxId = core.StructField{ - StructFieldName: "SenderWxId", - DbFieldName: "sender_wx_id", - Comment: "发送者id", +func (m *ModelRobot) GetAutoAddFriendField() string { + return "auto_add_friend" } -var ModelTbRobotGroupMsgField_UpdatedAt = core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", +func (m *ModelRobot) GetLastLoginTimeField() string { + return "last_login_time" } -var ModelTbRobotGroupMsgField_UserWxId = core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "群聊id", +func (m *ModelRobot) GetLastLogOutTimeField() string { + return "last_log_out_time" } -var ModelTbRobotPrivateMsgField_BindId = core.StructField{ - StructFieldName: "BindId", - DbFieldName: "bind_id", - Comment: "前端消息id", +func (m *ModelRobot) GetLastRegionCodeField() string { + return "last_region_code" } -var ModelTbRobotPrivateMsgField_CallBackAt = core.StructField{ - StructFieldName: "CallBackAt", - DbFieldName: "call_back_at", - Comment: "消息返回时间", +func (m *ModelRobot) GetLastCityField() string { + return "last_city" } -var ModelTbRobotPrivateMsgField_ContentData = core.StructField{ - StructFieldName: "ContentData", - DbFieldName: "content_data", - Comment: "消息内容", +func (m *ModelRobot) GetTodayRequireTimeField() string { + return "today_require_time" } -var ModelTbRobotPrivateMsgField_ContentRead = core.StructField{ - StructFieldName: "ContentRead", - DbFieldName: "content_read", - Comment: "是否内容被浏览(像语音之类的,需要浏览)", +func (m *ModelRobot) GetLastRequireAddFriendTimeField() string { + return "last_require_add_friend_time" } -var ModelTbRobotPrivateMsgField_CreatedAt = core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "创建时间", +func (m *ModelRobot) GetCrmAutoAddFriendField() string { + return "crm_auto_add_friend" } -var ModelTbRobotPrivateMsgField_Cursor = core.StructField{ - StructFieldName: "Cursor", - DbFieldName: "cursor", - Comment: "消息游标(对应session的all)", +func (m *ModelRobot) GetDeleteTimeField() string { + return "delete_time" } -var ModelTbRobotPrivateMsgField_Direct = core.StructField{ - StructFieldName: "Direct", - DbFieldName: "direct", - Comment: "用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送", +func (m *ModelRobot) GetCreateTimeField() string { + return "create_time" } -var ModelTbRobotPrivateMsgField_ExpireAt = core.StructField{ - StructFieldName: "ExpireAt", - DbFieldName: "expire_at", - Comment: "失效时间(用于消息的失效)", +func (m *ModelRobot) GetUpdateTimeField() string { + return "update_time" } -var ModelTbRobotPrivateMsgField_FailReason = core.StructField{ - StructFieldName: "FailReason", - DbFieldName: "fail_reason", - Comment: "失败原因", +func (m *ModelRobot) GetLogAndOutTimeField() string { + return "log_and_out_time" } -var ModelTbRobotPrivateMsgField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID", +func (m *ModelRobot) GetAndroidStatusField() string { + return "android_status" } -var ModelTbRobotPrivateMsgField_MsgId = core.StructField{ - StructFieldName: "MsgId", - DbFieldName: "msg_id", - Comment: "服务端自己生成一个消息id,来对应客户端的发送结果id", +func (m *ModelRobot) GetGreetIdField() string { + return "greet_id" } -var ModelTbRobotPrivateMsgField_MsgType = core.StructField{ - StructFieldName: "MsgType", - DbFieldName: "msg_type", - Comment: "消息类型", +func (m *ModelRobot) GetAndroidWechatVersionField() string { + return "android_wechat_version" } -var ModelTbRobotPrivateMsgField_RobotWxId = core.StructField{ - StructFieldName: "RobotWxId", - DbFieldName: "robot_wx_id", - Comment: "机器人id", +func (m *ModelRobot) GetRiskControlGroupField() string { + return "risk_control_group" } -var ModelTbRobotPrivateMsgField_SendAt = core.StructField{ - StructFieldName: "SendAt", - DbFieldName: "send_at", - Comment: "发送时间(消息实际生效时间)", +func (m *ModelRobot) GetLastPcLoginAtField() string { + return "last_pc_login_at" } -var ModelTbRobotPrivateMsgField_SendErrorCode = core.StructField{ - StructFieldName: "SendErrorCode", - DbFieldName: "send_error_code", - Comment: "发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3", +func (m *ModelRobot) GetLastPcLogoutAtField() string { + return "last_pc_logout_at" } -var ModelTbRobotPrivateMsgField_SendStatus = core.StructField{ - StructFieldName: "SendStatus", - DbFieldName: "send_status", - Comment: "发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3", +func (m *ModelRobot) GetLastAndroidLoginAtField() string { + return "last_android_login_at" } -var ModelTbRobotPrivateMsgField_UpdatedAt = core.StructField{ - StructFieldName: "UpdatedAt", - DbFieldName: "updated_at", - Comment: "更新时间", +func (m *ModelRobot) GetLastAndroidLogoutAtField() string { + return "last_android_logout_at" } -var ModelTbRobotPrivateMsgField_UserWxId = core.StructField{ - StructFieldName: "UserWxId", - DbFieldName: "user_wx_id", - Comment: "好友id", +func (m *ModelRobot) GetRiskControlTaskField() string { + return "risk_control_task" } -var ModelWsConnectRecordField_BindId = core.StructField{ - StructFieldName: "BindId", - DbFieldName: "bind_id", - Comment: "该ws绑定的id", +func (m *ModelRobot) GetOpenForStrangerField() string { + return "open_for_stranger" } -var ModelWsConnectRecordField_CreatedAt = core.StructField{ - StructFieldName: "CreatedAt", - DbFieldName: "created_at", - Comment: "记录创建时间", +func (m *ModelRobot) GetMomentPrivacyTypeField() string { + return "moment_privacy_type" } -var ModelWsConnectRecordField_ExpiredAt = core.StructField{ - StructFieldName: "ExpiredAt", - DbFieldName: "expired_at", - Comment: "过期时间", +func (m *ModelRobot) GetCoverUrlField() string { + return "cover_url" } -var ModelWsConnectRecordField_Id = core.StructField{ - StructFieldName: "Id", - DbFieldName: "_id", - Comment: "主键ID wxid md5", +func (m *ModelRobot) GetCountryField() string { + return "country" } -var ModelWsConnectRecordField_LoginAt = core.StructField{ - StructFieldName: "LoginAt", - DbFieldName: "login_at", - Comment: "登录时间", +func (m *ModelRobot) GetProvinceField() string { + return "province" } -var ModelWsConnectRecordField_LogoutAt = core.StructField{ - StructFieldName: "LogoutAt", - DbFieldName: "logout_at", - Comment: "登出时间", +func (m *ModelRobot) GetCityField() string { + return "city" } -var ModelWsConnectRecordField_UserId = core.StructField{ - StructFieldName: "UserId", - DbFieldName: "user_id", - Comment: "机器人所属用户id", +func (m *ModelRobot) GetSignatureField() string { + return "signature" } diff --git a/gen.sh b/gen.sh index 80659ea..6b7e83a 100755 --- a/gen.sh +++ b/gen.sh @@ -1,3 +1,3 @@ #!/bin/bash -gotker gen --path . --out . --no-scope \ No newline at end of file +coco gen --path mdbc.proto \ No newline at end of file diff --git a/mdbc.pb.go b/mdbc.pb.go index ed2327b..3e67ec3 100644 --- a/mdbc.pb.go +++ b/mdbc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.18.1 +// protoc-gen-go v1.29.0 +// protoc v4.22.2 // source: mdbc.proto package mdbc @@ -131,30 +131,19 @@ type ModelFriendInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` // 主键ID wxid md5 - //@gotags: bson:"wechat_id" - WechatId string `protobuf:"bytes,2,opt,name=wechat_id,json=wechatId,proto3" json:"wechat_id,omitempty" bson:"wechat_id"` // 用户微信ID - //@gotags: bson:"nick_name" - Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty" bson:"nick_name"` // 用户暱称 - //@gotags: bson:"wechat_alias" - WechatAlias string `protobuf:"bytes,4,opt,name=wechat_alias,json=wechatAlias,proto3" json:"wechat_alias,omitempty" bson:"wechat_alias"` // 用户微信号 - //@gotags: bson:"avatar_url" - AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty" bson:"avatar_url"` // 用户头像 - //@gotags: bson:"phone" - Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty" bson:"phone"` // 手机号码 - //@gotags: bson:"country" - Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty" bson:"country"` // 国家 - //@gotags: bson:"province" - Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province,omitempty" bson:"province"` // 省份 - //@gotags: bson:"city" - City string `protobuf:"bytes,9,opt,name=city,proto3" json:"city,omitempty" bson:"city"` // 城市 - //@gotags: bson:"sex" - Sex int32 `protobuf:"varint,10,opt,name=sex,proto3" json:"sex,omitempty" bson:"sex"` // 0未知 1男 2女 - //@gotags: bson:"create_time" - CreateTime int64 `protobuf:"varint,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" bson:"create_time"` // 创建时间 - //@gotags: bson:"update_time" - UpdateTime int64 `protobuf:"varint,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" bson:"update_time"` // 更新时间 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 主键ID wxid md5 + WechatId string `protobuf:"bytes,2,opt,name=wechat_id,json=wechatId,proto3" json:"wechat_id,omitempty"` // 用户微信ID + // @bson: nick_name + Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` // 用户暱称 + WechatAlias string `protobuf:"bytes,4,opt,name=wechat_alias,json=wechatAlias,proto3" json:"wechat_alias,omitempty"` // 用户微信号 + AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 用户头像 + Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` // 手机号码 + Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"` // 国家 + Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province,omitempty"` // 省份 + City string `protobuf:"bytes,9,opt,name=city,proto3" json:"city,omitempty"` // 城市 + Sex int32 `protobuf:"varint,10,opt,name=sex,proto3" json:"sex,omitempty"` // 0未知 1男 2女 + CreateTime int64 `protobuf:"varint,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间 + UpdateTime int64 `protobuf:"varint,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间 } func (x *ModelFriendInfo) Reset() { @@ -279,50 +268,28 @@ type ModelGroupChat struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` // 主键ID - //@gotags: bson:"created_at" - CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` // 创建时间 - //@gotags: bson:"updated_at" - UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` // 更新时间 - //@gotags: bson:"deleted_at" - DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty" bson:"deleted_at"` // 删除时间【记: 此表正常情况下 只进行软删除】非零 历史群 0正常群 - //@gotags: bson:"robot_wx_id" - RobotWxId string `protobuf:"bytes,6,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty" bson:"robot_wx_id"` // 机器人id - //@gotags: bson:"group_wx_id" - GroupWxId string `protobuf:"bytes,7,opt,name=group_wx_id,json=groupWxId,proto3" json:"group_wx_id,omitempty" bson:"group_wx_id"` // 群id - //@gotags: bson:"owner_wx_id" - OwnerWxId string `protobuf:"bytes,8,opt,name=owner_wx_id,json=ownerWxId,proto3" json:"owner_wx_id,omitempty" bson:"owner_wx_id"` // 群主id - //@gotags: bson:"group_name" - GroupName string `protobuf:"bytes,9,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty" bson:"group_name"` // 群名称 - //@gotags: bson:"member_count" - MemberCount uint32 `protobuf:"varint,10,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty" bson:"member_count"` // 群成员数量 - //@gotags: bson:"owner_name" - OwnerName string `protobuf:"bytes,11,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty" bson:"owner_name"` // 群主名称 - //@gotags: bson:"group_avatar_url" - GroupAvatarUrl string `protobuf:"bytes,12,opt,name=group_avatar_url,json=groupAvatarUrl,proto3" json:"group_avatar_url,omitempty" bson:"group_avatar_url"` // 群头像 - //@gotags: bson:"is_watch" - IsWatch bool `protobuf:"varint,13,opt,name=is_watch,json=isWatch,proto3" json:"is_watch,omitempty" bson:"is_watch"` // 是否关注群 - //@gotags: bson:"has_been_watch" - HasBeenWatch bool `protobuf:"varint,14,opt,name=has_been_watch,json=hasBeenWatch,proto3" json:"has_been_watch,omitempty" bson:"has_been_watch"` // 以前有关注过 - //@gotags: bson:"is_default_group_name" - IsDefaultGroupName bool `protobuf:"varint,15,opt,name=is_default_group_name,json=isDefaultGroupName,proto3" json:"is_default_group_name,omitempty" bson:"is_default_group_name"` // 是否是默认的群名称 - //@gotags: bson:"in_contact" - InContact bool `protobuf:"varint,16,opt,name=in_contact,json=inContact,proto3" json:"in_contact,omitempty" bson:"in_contact"` // 是否在通讯录中 - //@gotags: bson:"disable_invite" - DisableInvite bool `protobuf:"varint,17,opt,name=disable_invite,json=disableInvite,proto3" json:"disable_invite,omitempty" bson:"disable_invite"` // 是否开启了群聊邀请确认 true 开启了 false 关闭了 - //@gotags: bson:"last_sync_at" - LastSyncAt int64 `protobuf:"varint,20,opt,name=last_sync_at,json=lastSyncAt,proto3" json:"last_sync_at,omitempty" bson:"last_sync_at"` // 最后更新群信息时间 【通过这里 指定规则 去拉群基本信息】 - //@gotags: bson:"last_sync_member_at" - LastSyncMemberAt int64 `protobuf:"varint,21,opt,name=last_sync_member_at,json=lastSyncMemberAt,proto3" json:"last_sync_member_at,omitempty" bson:"last_sync_member_at"` // 最后更新群成员时间 【通过这里 指定规则 去拉群成员信息】 - //@gotags: bson:"notice" - Notice string `protobuf:"bytes,22,opt,name=notice,proto3" json:"notice,omitempty" bson:"notice"` // 群公告 - //@gotags: bson:"qrcode_updated_at" - QrcodeUpdatedAt int64 `protobuf:"varint,23,opt,name=qrcode_updated_at,json=qrcodeUpdatedAt,proto3" json:"qrcode_updated_at,omitempty" bson:"qrcode_updated_at"` // 群聊二维码更新时间 - //@gotags: bson:"qrcode_url" - QrcodeUrl string `protobuf:"bytes,24,opt,name=qrcode_url,json=qrcodeUrl,proto3" json:"qrcode_url,omitempty" bson:"qrcode_url"` // 群聊二维码 - //@gotags: bson:"admin_type" - AdminType AdminType `protobuf:"varint,25,opt,name=admin_type,json=adminType,proto3,enum=mdbc.AdminType" json:"admin_type,omitempty" bson:"admin_type"` // 机器人权限类型 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 主键ID + CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 + UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 + DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // 删除时间【记: 此表正常情况下 只进行软删除】非零 历史群 0正常群 + RobotWxId string `protobuf:"bytes,6,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty"` // 机器人id + GroupWxId string `protobuf:"bytes,7,opt,name=group_wx_id,json=groupWxId,proto3" json:"group_wx_id,omitempty"` // 群id + OwnerWxId string `protobuf:"bytes,8,opt,name=owner_wx_id,json=ownerWxId,proto3" json:"owner_wx_id,omitempty"` // 群主id + GroupName string `protobuf:"bytes,9,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` // 群名称 + MemberCount uint32 `protobuf:"varint,10,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"` // 群成员数量 + OwnerName string `protobuf:"bytes,11,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` // 群主名称 + GroupAvatarUrl string `protobuf:"bytes,12,opt,name=group_avatar_url,json=groupAvatarUrl,proto3" json:"group_avatar_url,omitempty"` // 群头像 + IsWatch bool `protobuf:"varint,13,opt,name=is_watch,json=isWatch,proto3" json:"is_watch,omitempty"` // 是否关注群 + HasBeenWatch bool `protobuf:"varint,14,opt,name=has_been_watch,json=hasBeenWatch,proto3" json:"has_been_watch,omitempty"` // 以前有关注过 + IsDefaultGroupName bool `protobuf:"varint,15,opt,name=is_default_group_name,json=isDefaultGroupName,proto3" json:"is_default_group_name,omitempty"` // 是否是默认的群名称 + InContact bool `protobuf:"varint,16,opt,name=in_contact,json=inContact,proto3" json:"in_contact,omitempty"` // 是否在通讯录中 + DisableInvite bool `protobuf:"varint,17,opt,name=disable_invite,json=disableInvite,proto3" json:"disable_invite,omitempty"` // 是否开启了群聊邀请确认 true 开启了 false 关闭了 + LastSyncAt int64 `protobuf:"varint,20,opt,name=last_sync_at,json=lastSyncAt,proto3" json:"last_sync_at,omitempty"` // 最后更新群信息时间 【通过这里 指定规则 去拉群基本信息】 + LastSyncMemberAt int64 `protobuf:"varint,21,opt,name=last_sync_member_at,json=lastSyncMemberAt,proto3" json:"last_sync_member_at,omitempty"` // 最后更新群成员时间 【通过这里 指定规则 去拉群成员信息】 + Notice string `protobuf:"bytes,22,opt,name=notice,proto3" json:"notice,omitempty"` // 群公告 + QrcodeUpdatedAt int64 `protobuf:"varint,23,opt,name=qrcode_updated_at,json=qrcodeUpdatedAt,proto3" json:"qrcode_updated_at,omitempty"` // 群聊二维码更新时间 + QrcodeUrl string `protobuf:"bytes,24,opt,name=qrcode_url,json=qrcodeUrl,proto3" json:"qrcode_url,omitempty"` // 群聊二维码 + AdminType AdminType `protobuf:"varint,25,opt,name=admin_type,json=adminType,proto3,enum=mdbc.AdminType" json:"admin_type,omitempty"` // 机器人权限类型 } func (x *ModelGroupChat) Reset() { @@ -517,32 +484,19 @@ type ModelGroupChatMember struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` // id - //@gotags: bson:"created_at" - CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` // 创建时间 - //@gotags: bson:"updated_at" - UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` // 更新时间 - //@gotags: bson:"deleted_at" - DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty" bson:"deleted_at"` // 删除时间 这个表一般直接硬删除 - //@gotags: bson:"group_chat_id" - GroupChatId string `protobuf:"bytes,5,opt,name=group_chat_id,json=groupChatId,proto3" json:"group_chat_id,omitempty" bson:"group_chat_id"` // 群 ModelGroupChat 的ID - //@gotags: bson:"member_wx_id" - MemberWxId string `protobuf:"bytes,6,opt,name=member_wx_id,json=memberWxId,proto3" json:"member_wx_id,omitempty" bson:"member_wx_id"` // 群成员微信id - //@gotags: bson:"member_name" - MemberName string `protobuf:"bytes,7,opt,name=member_name,json=memberName,proto3" json:"member_name,omitempty" bson:"member_name"` // 群成员名称 - //@gotags: bson:"member_avatar" - MemberAvatar string `protobuf:"bytes,8,opt,name=member_avatar,json=memberAvatar,proto3" json:"member_avatar,omitempty" bson:"member_avatar"` // 群成员头像 - //@gotags: bson:"member_alias" - MemberAlias string `protobuf:"bytes,9,opt,name=member_alias,json=memberAlias,proto3" json:"member_alias,omitempty" bson:"member_alias"` // 群昵称 - //@gotags: bson:"member_sex" - MemberSex uint32 `protobuf:"varint,10,opt,name=member_sex,json=memberSex,proto3" json:"member_sex,omitempty" bson:"member_sex"` // 性别 - //@gotags: bson:"is_robot" - IsRobot bool `protobuf:"varint,11,opt,name=is_robot,json=isRobot,proto3" json:"is_robot,omitempty" bson:"is_robot"` // 是否是机器人 - //@gotags: bson:"admin_type" - AdminType AdminType `protobuf:"varint,12,opt,name=admin_type,json=adminType,proto3,enum=mdbc.AdminType" json:"admin_type,omitempty" bson:"admin_type"` // 权限类型 群主 管理员 普通成员 - //@gotags: bson:"last_sync_at" - LastSyncAt int64 `protobuf:"varint,13,opt,name=last_sync_at,json=lastSyncAt,proto3" json:"last_sync_at,omitempty" bson:"last_sync_at"` // 该群该成员 最后更新时间 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // id + CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 + UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 + DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // 删除时间 这个表一般直接硬删除 + GroupChatId string `protobuf:"bytes,5,opt,name=group_chat_id,json=groupChatId,proto3" json:"group_chat_id,omitempty"` // 群 ModelGroupChat 的ID + MemberWxId string `protobuf:"bytes,6,opt,name=member_wx_id,json=memberWxId,proto3" json:"member_wx_id,omitempty"` // 群成员微信id + MemberName string `protobuf:"bytes,7,opt,name=member_name,json=memberName,proto3" json:"member_name,omitempty"` // 群成员名称 + MemberAvatar string `protobuf:"bytes,8,opt,name=member_avatar,json=memberAvatar,proto3" json:"member_avatar,omitempty"` // 群成员头像 + MemberAlias string `protobuf:"bytes,9,opt,name=member_alias,json=memberAlias,proto3" json:"member_alias,omitempty"` // 群昵称 + MemberSex uint32 `protobuf:"varint,10,opt,name=member_sex,json=memberSex,proto3" json:"member_sex,omitempty"` // 性别 + IsRobot bool `protobuf:"varint,11,opt,name=is_robot,json=isRobot,proto3" json:"is_robot,omitempty"` // 是否是机器人 + AdminType AdminType `protobuf:"varint,12,opt,name=admin_type,json=adminType,proto3,enum=mdbc.AdminType" json:"admin_type,omitempty"` // 权限类型 群主 管理员 普通成员 + LastSyncAt int64 `protobuf:"varint,13,opt,name=last_sync_at,json=lastSyncAt,proto3" json:"last_sync_at,omitempty"` // 该群该成员 最后更新时间 } func (x *ModelGroupChatMember) Reset() { @@ -674,26 +628,16 @@ type ModelTbPrivateMsgSession struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` //会话ID (md5(机器人id+好友id)) - //@gotags: bson:"all" - All int32 `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty" bson:"all"` //消息最大游标(消息总数:只算有效的消息) - //@gotags: bson:"read" - Read int32 `protobuf:"varint,3,opt,name=read,proto3" json:"read,omitempty" bson:"read"` //已读游标 - //@gotags: bson:"unread" - Unread int32 `protobuf:"varint,4,opt,name=unread,proto3" json:"unread,omitempty" bson:"unread"` //未读消息游标 - //@gotags: bson:"last_msg_at" - LastMsgAt int64 `protobuf:"varint,5,opt,name=last_msg_at,json=lastMsgAt,proto3" json:"last_msg_at,omitempty" bson:"last_msg_at"` //最后一条消息时间 - //@gotags: bson:"last_friend_msg_at" - LastFriendMsgAt int64 `protobuf:"varint,6,opt,name=last_friend_msg_at,json=lastFriendMsgAt,proto3" json:"last_friend_msg_at,omitempty" bson:"last_friend_msg_at"` //接受到最后一条好友消息时间 - //@gotags: bson:"robot_wx_id" - RobotWxId string `protobuf:"bytes,7,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty" bson:"robot_wx_id"` //机器人id - //@gotags: bson:"user_wx_id" - UserWxId string `protobuf:"bytes,8,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty" bson:"user_wx_id"` //好友微信id - //@gotags: bson:"last_msg_id" - LastMsgId string `protobuf:"bytes,9,opt,name=last_msg_id,json=lastMsgId,proto3" json:"last_msg_id,omitempty" bson:"last_msg_id"` //最后一条消息id - //@gotags: bson:"last_friend_msg_id" - LastFriendMsgId string `protobuf:"bytes,10,opt,name=last_friend_msg_id,json=lastFriendMsgId,proto3" json:"last_friend_msg_id,omitempty" bson:"last_friend_msg_id"` //接收的最后一条好友消息id + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //会话ID (md5(机器人id+好友id)) + All int32 `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"` //消息最大游标(消息总数:只算有效的消息) + Read int32 `protobuf:"varint,3,opt,name=read,proto3" json:"read,omitempty"` //已读游标 + Unread int32 `protobuf:"varint,4,opt,name=unread,proto3" json:"unread,omitempty"` //未读消息游标 + LastMsgAt int64 `protobuf:"varint,5,opt,name=last_msg_at,json=lastMsgAt,proto3" json:"last_msg_at,omitempty"` //最后一条消息时间 + LastFriendMsgAt int64 `protobuf:"varint,6,opt,name=last_friend_msg_at,json=lastFriendMsgAt,proto3" json:"last_friend_msg_at,omitempty"` //接受到最后一条好友消息时间 + RobotWxId string `protobuf:"bytes,7,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty"` //机器人id + UserWxId string `protobuf:"bytes,8,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty"` //好友微信id + LastMsgId string `protobuf:"bytes,9,opt,name=last_msg_id,json=lastMsgId,proto3" json:"last_msg_id,omitempty"` //最后一条消息id + LastFriendMsgId string `protobuf:"bytes,10,opt,name=last_friend_msg_id,json=lastFriendMsgId,proto3" json:"last_friend_msg_id,omitempty"` //接收的最后一条好友消息id } func (x *ModelTbPrivateMsgSession) Reset() { @@ -804,28 +748,17 @@ type ModelTbGroupMsgSession struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` //会话ID (md5(机器人id+好友id)) - //@gotags: bson:"all" - All int32 `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty" bson:"all"` //消息最大游标(消息总数:只算有效的消息) - //@gotags: bson:"read" - Read int32 `protobuf:"varint,3,opt,name=read,proto3" json:"read,omitempty" bson:"read"` //已读游标 - //@gotags: bson:"unread" - Unread int32 `protobuf:"varint,4,opt,name=unread,proto3" json:"unread,omitempty" bson:"unread"` //未读消息游标 - //@gotags: bson:"last_msg_at" - LastMsgAt int64 `protobuf:"varint,5,opt,name=last_msg_at,json=lastMsgAt,proto3" json:"last_msg_at,omitempty" bson:"last_msg_at"` //最后一条消息时间 - //@gotags: bson:"last_friend_msg_at" - LastFriendMsgAt int64 `protobuf:"varint,6,opt,name=last_friend_msg_at,json=lastFriendMsgAt,proto3" json:"last_friend_msg_at,omitempty" bson:"last_friend_msg_at"` //接受到最后一条好友消息时间 - //@gotags: bson:"robot_wx_id" - RobotWxId string `protobuf:"bytes,7,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty" bson:"robot_wx_id"` //机器人id - //@gotags: bson:"user_wx_id" - UserWxId string `protobuf:"bytes,8,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty" bson:"user_wx_id"` //群微信id - //@gotags: bson:"last_msg_id" - LastMsgId string `protobuf:"bytes,9,opt,name=last_msg_id,json=lastMsgId,proto3" json:"last_msg_id,omitempty" bson:"last_msg_id"` //最后一条消息id - //@gotags: bson:"last_friend_msg_id" - LastFriendMsgId string `protobuf:"bytes,10,opt,name=last_friend_msg_id,json=lastFriendMsgId,proto3" json:"last_friend_msg_id,omitempty" bson:"last_friend_msg_id"` //接收的最后一条好友消息id - //@gotags: bson:"last_member_wx_id" - LastMemberWxId string `protobuf:"bytes,11,opt,name=last_member_wx_id,json=lastMemberWxId,proto3" json:"last_member_wx_id,omitempty" bson:"last_member_wx_id"` //最后发送消息的群成员id + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //会话ID (md5(机器人id+好友id)) + All int32 `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"` //消息最大游标(消息总数:只算有效的消息) + Read int32 `protobuf:"varint,3,opt,name=read,proto3" json:"read,omitempty"` //已读游标 + Unread int32 `protobuf:"varint,4,opt,name=unread,proto3" json:"unread,omitempty"` //未读消息游标 + LastMsgAt int64 `protobuf:"varint,5,opt,name=last_msg_at,json=lastMsgAt,proto3" json:"last_msg_at,omitempty"` //最后一条消息时间 + LastFriendMsgAt int64 `protobuf:"varint,6,opt,name=last_friend_msg_at,json=lastFriendMsgAt,proto3" json:"last_friend_msg_at,omitempty"` //接受到最后一条好友消息时间 + RobotWxId string `protobuf:"bytes,7,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty"` //机器人id + UserWxId string `protobuf:"bytes,8,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty"` //群微信id + LastMsgId string `protobuf:"bytes,9,opt,name=last_msg_id,json=lastMsgId,proto3" json:"last_msg_id,omitempty"` //最后一条消息id + LastFriendMsgId string `protobuf:"bytes,10,opt,name=last_friend_msg_id,json=lastFriendMsgId,proto3" json:"last_friend_msg_id,omitempty"` //接收的最后一条好友消息id + LastMemberWxId string `protobuf:"bytes,11,opt,name=last_member_wx_id,json=lastMemberWxId,proto3" json:"last_member_wx_id,omitempty"` //最后发送消息的群成员id } func (x *ModelTbGroupMsgSession) Reset() { @@ -943,43 +876,25 @@ type ModelTbRobotPrivateMsg struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` // 主键ID - //@gotags: bson:"bind_id" - BindId string `protobuf:"bytes,3,opt,name=bind_id,json=bindId,proto3" json:"bind_id,omitempty" bson:"bind_id"` // 前端消息id - //@gotags: bson:"robot_wx_id" - RobotWxId string `protobuf:"bytes,4,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty" bson:"robot_wx_id"` // 机器人id - //@gotags: bson:"user_wx_id" - UserWxId string `protobuf:"bytes,5,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty" bson:"user_wx_id"` // 好友id - //@gotags: bson:"msg_id" - MsgId string `protobuf:"bytes,6,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty" bson:"msg_id"` // 服务端自己生成一个消息id,来对应客户端的发送结果id - //@gotags: bson:"msg_type" - MsgType int32 `protobuf:"varint,7,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty" bson:"msg_type"` // 消息类型 - //@gotags: bson:"send_status" - SendStatus int32 `protobuf:"varint,8,opt,name=send_status,json=sendStatus,proto3" json:"send_status,omitempty" bson:"send_status"` // 发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3 - //@gotags: bson:"direct" - Direct int32 `protobuf:"varint,9,opt,name=direct,proto3" json:"direct,omitempty" bson:"direct"` // 用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送 - //@gotags: bson:"send_error_code" - SendErrorCode int32 `protobuf:"varint,10,opt,name=send_error_code,json=sendErrorCode,proto3" json:"send_error_code,omitempty" bson:"send_error_code"` // 发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 主键ID + BindId string `protobuf:"bytes,3,opt,name=bind_id,json=bindId,proto3" json:"bind_id,omitempty"` // 前端消息id + RobotWxId string `protobuf:"bytes,4,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty"` // 机器人id + UserWxId string `protobuf:"bytes,5,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty"` // 好友id + MsgId string `protobuf:"bytes,6,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` // 服务端自己生成一个消息id,来对应客户端的发送结果id + MsgType int32 `protobuf:"varint,7,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"` // 消息类型 + SendStatus int32 `protobuf:"varint,8,opt,name=send_status,json=sendStatus,proto3" json:"send_status,omitempty"` // 发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3 + Direct int32 `protobuf:"varint,9,opt,name=direct,proto3" json:"direct,omitempty"` // 用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送 + SendErrorCode int32 `protobuf:"varint,10,opt,name=send_error_code,json=sendErrorCode,proto3" json:"send_error_code,omitempty"` // 发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3 // 被删除; -4 好友找不到; - //@gotags: bson:"content_read" - ContentRead bool `protobuf:"varint,12,opt,name=content_read,json=contentRead,proto3" json:"content_read,omitempty" bson:"content_read"` // 是否内容被浏览(像语音之类的,需要浏览) - //@gotags: bson:"created_at" - CreatedAt int64 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` // 创建时间 - //@gotags: bson:"updated_at" - UpdatedAt int64 `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` // 更新时间 - //@gotags: bson:"fail_reason" - FailReason string `protobuf:"bytes,15,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty" bson:"fail_reason"` // 失败原因 - //@gotags: bson:"call_back_at" - CallBackAt int64 `protobuf:"varint,16,opt,name=call_back_at,json=callBackAt,proto3" json:"call_back_at,omitempty" bson:"call_back_at"` // 消息返回时间 - //@gotags: bson:"cursor" - Cursor int64 `protobuf:"varint,17,opt,name=cursor,proto3" json:"cursor,omitempty" bson:"cursor"` // 消息游标(对应session的all) - //@gotags: bson:"send_at" - SendAt int64 `protobuf:"varint,18,opt,name=send_at,json=sendAt,proto3" json:"send_at,omitempty" bson:"send_at"` // 发送时间(消息实际生效时间) - //@gotags: bson:"expire_at" - ExpireAt int64 `protobuf:"varint,19,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty" bson:"expire_at"` // 失效时间(用于消息的失效) - //@gotags: bson:"content_data" - ContentData *ContentData `protobuf:"bytes,20,opt,name=content_data,json=contentData,proto3" json:"content_data,omitempty" bson:"content_data"` // 消息内容 + ContentRead bool `protobuf:"varint,12,opt,name=content_read,json=contentRead,proto3" json:"content_read,omitempty"` // 是否内容被浏览(像语音之类的,需要浏览) + CreatedAt int64 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 + UpdatedAt int64 `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 + FailReason string `protobuf:"bytes,15,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty"` // 失败原因 + CallBackAt int64 `protobuf:"varint,16,opt,name=call_back_at,json=callBackAt,proto3" json:"call_back_at,omitempty"` // 消息返回时间 + Cursor int64 `protobuf:"varint,17,opt,name=cursor,proto3" json:"cursor,omitempty"` // 消息游标(对应session的all) + SendAt int64 `protobuf:"varint,18,opt,name=send_at,json=sendAt,proto3" json:"send_at,omitempty"` // 发送时间(消息实际生效时间) + ExpireAt int64 `protobuf:"varint,19,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"` // 失效时间(用于消息的失效) + ContentData *ContentData `protobuf:"bytes,20,opt,name=content_data,json=contentData,proto3" json:"content_data,omitempty"` // 消息内容 } func (x *ModelTbRobotPrivateMsg) Reset() { @@ -1146,45 +1061,26 @@ type ModelTbRobotGroupMsg struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` // 主键ID - //@gotags: bson:"bind_id" - BindId string `protobuf:"bytes,3,opt,name=bind_id,json=bindId,proto3" json:"bind_id,omitempty" bson:"bind_id"` // 前端消息id - //@gotags: bson:"robot_wx_id" - RobotWxId string `protobuf:"bytes,4,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty" bson:"robot_wx_id"` // 机器人id - //@gotags: bson:"user_wx_id" - UserWxId string `protobuf:"bytes,5,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty" bson:"user_wx_id"` // 群聊id - //@gotags: bson:"msg_id" - MsgId string `protobuf:"bytes,6,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty" bson:"msg_id"` // 服务端自己生成一个消息id,来对应客户端的发送结果id - //@gotags: bson:"msg_type" - MsgType int32 `protobuf:"varint,7,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty" bson:"msg_type"` // 消息类型 - //@gotags: bson:"send_status" - SendStatus int32 `protobuf:"varint,8,opt,name=send_status,json=sendStatus,proto3" json:"send_status,omitempty" bson:"send_status"` // 发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3 - //@gotags: bson:"direct" - Direct int32 `protobuf:"varint,9,opt,name=direct,proto3" json:"direct,omitempty" bson:"direct"` // 用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送 - //@gotags: bson:"send_error_code" - SendErrorCode int32 `protobuf:"varint,10,opt,name=send_error_code,json=sendErrorCode,proto3" json:"send_error_code,omitempty" bson:"send_error_code"` // 发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 主键ID + BindId string `protobuf:"bytes,3,opt,name=bind_id,json=bindId,proto3" json:"bind_id,omitempty"` // 前端消息id + RobotWxId string `protobuf:"bytes,4,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty"` // 机器人id + UserWxId string `protobuf:"bytes,5,opt,name=user_wx_id,json=userWxId,proto3" json:"user_wx_id,omitempty"` // 群聊id + MsgId string `protobuf:"bytes,6,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` // 服务端自己生成一个消息id,来对应客户端的发送结果id + MsgType int32 `protobuf:"varint,7,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"` // 消息类型 + SendStatus int32 `protobuf:"varint,8,opt,name=send_status,json=sendStatus,proto3" json:"send_status,omitempty"` // 发送状态:0:发送中;1:发送请求成功;2:发送请求失败;3:发送成功;4:发送失败;仅机器人发送。接收到用户消息的默认3 + Direct int32 `protobuf:"varint,9,opt,name=direct,proto3" json:"direct,omitempty"` // 用于区分机器人是接收方还是发送方。1:机器人接收;2:机器人发送 + SendErrorCode int32 `protobuf:"varint,10,opt,name=send_error_code,json=sendErrorCode,proto3" json:"send_error_code,omitempty"` // 发送错误码:用户告诉对应的是什么错误:-1 通用错误码; -2 被拉黑; -3 // 被删除; -4 好友找不到; - //@gotags: bson:"content_read" - ContentRead bool `protobuf:"varint,12,opt,name=content_read,json=contentRead,proto3" json:"content_read,omitempty" bson:"content_read"` // 是否内容被浏览(像语音之类的,需要浏览) - //@gotags: bson:"created_at" - CreatedAt int64 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` // 创建时间 - //@gotags: bson:"updated_at" - UpdatedAt int64 `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` // 更新时间 - //@gotags: bson:"fail_reason" - FailReason string `protobuf:"bytes,15,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty" bson:"fail_reason"` // 失败原因 - //@gotags: bson:"call_back_at" - CallBackAt int64 `protobuf:"varint,16,opt,name=call_back_at,json=callBackAt,proto3" json:"call_back_at,omitempty" bson:"call_back_at"` // 消息返回时间 - //@gotags: bson:"cursor" - Cursor int64 `protobuf:"varint,17,opt,name=cursor,proto3" json:"cursor,omitempty" bson:"cursor"` // 消息游标(对应session的all) - //@gotags: bson:"send_at" - SendAt int64 `protobuf:"varint,18,opt,name=send_at,json=sendAt,proto3" json:"send_at,omitempty" bson:"send_at"` // 发送时间(消息实际生效时间) - //@gotags: bson:"expire_at" - ExpireAt int64 `protobuf:"varint,19,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty" bson:"expire_at"` // 失效时间(用于消息的失效) - //@gotags: bson:"content_data" - ContentData *ContentData `protobuf:"bytes,20,opt,name=content_data,json=contentData,proto3" json:"content_data,omitempty" bson:"content_data"` // 消息内容 - //@gotags: bson:"sender_wx_id" - SenderWxId string `protobuf:"bytes,21,opt,name=sender_wx_id,json=senderWxId,proto3" json:"sender_wx_id,omitempty" bson:"sender_wx_id"` // 发送者id + ContentRead bool `protobuf:"varint,12,opt,name=content_read,json=contentRead,proto3" json:"content_read,omitempty"` // 是否内容被浏览(像语音之类的,需要浏览) + CreatedAt int64 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 + UpdatedAt int64 `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 + FailReason string `protobuf:"bytes,15,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty"` // 失败原因 + CallBackAt int64 `protobuf:"varint,16,opt,name=call_back_at,json=callBackAt,proto3" json:"call_back_at,omitempty"` // 消息返回时间 + Cursor int64 `protobuf:"varint,17,opt,name=cursor,proto3" json:"cursor,omitempty"` // 消息游标(对应session的all) + SendAt int64 `protobuf:"varint,18,opt,name=send_at,json=sendAt,proto3" json:"send_at,omitempty"` // 发送时间(消息实际生效时间) + ExpireAt int64 `protobuf:"varint,19,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"` // 失效时间(用于消息的失效) + ContentData *ContentData `protobuf:"bytes,20,opt,name=content_data,json=contentData,proto3" json:"content_data,omitempty"` // 消息内容 + SenderWxId string `protobuf:"bytes,21,opt,name=sender_wx_id,json=senderWxId,proto3" json:"sender_wx_id,omitempty"` // 发送者id } func (x *ModelTbRobotGroupMsg) Reset() { @@ -1357,36 +1253,22 @@ type ContentData struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"raw_content" - RawContent string `protobuf:"bytes,1,opt,name=raw_content,json=rawContent,proto3" json:"raw_content,omitempty" bson:"raw_content"` // 元始的xml数据 做数据转发时用; - //@gotags: bson:"content" - Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" bson:"content"` // 1文本的内容;2 语音的url(amr格式);6小程序的xml; - //@gotags: bson:"share_title" - ShareTitle string `protobuf:"bytes,3,opt,name=share_title,json=shareTitle,proto3" json:"share_title,omitempty" bson:"share_title"` // 5链接的标题; - //@gotags: bson:"share_desc" - ShareDesc string `protobuf:"bytes,4,opt,name=share_desc,json=shareDesc,proto3" json:"share_desc,omitempty" bson:"share_desc"` // 5链接的描述; - //@gotags: bson:"share_url" - ShareUrl string `protobuf:"bytes,5,opt,name=share_url,json=shareUrl,proto3" json:"share_url,omitempty" bson:"share_url"` // 5链接的URL; - //@gotags: bson:"file_url" - FileUrl string `protobuf:"bytes,6,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty" bson:"file_url"` // 3图片的url;4视频的Url;5链接的分享图;8表情的url(gif);9文件的url; - //@gotags: bson:"share_user_name" - ShareUserName string `protobuf:"bytes,7,opt,name=share_user_name,json=shareUserName,proto3" json:"share_user_name,omitempty" bson:"share_user_name"` // 7名片的被分享(名片)好友id; - //@gotags: bson:"share_nick_name" - ShareNickName string `protobuf:"bytes,8,opt,name=share_nick_name,json=shareNickName,proto3" json:"share_nick_name,omitempty" bson:"share_nick_name"` // 7名片的被分享(名片)的昵称; - //@gotags: bson:"at_msg_item" - AtMsgItem []*AtMsgItem `protobuf:"bytes,9,rep,name=at_msg_item,json=atMsgItem,proto3" json:"at_msg_item,omitempty" bson:"at_msg_item"` // 发送群@部分人消息的数据 - //@gotags: bson:"wx_msg_type" - WxMsgType int32 `protobuf:"varint,10,opt,name=wx_msg_type,json=wxMsgType,proto3" json:"wx_msg_type,omitempty" bson:"wx_msg_type"` // 消息类型: 1 文本;2 语音;3 图片;4 视频;5 链接;6 小程序;7 + RawContent string `protobuf:"bytes,1,opt,name=raw_content,json=rawContent,proto3" json:"raw_content,omitempty"` // 元始的xml数据 做数据转发时用; + Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 1文本的内容;2 语音的url(amr格式);6小程序的xml; + ShareTitle string `protobuf:"bytes,3,opt,name=share_title,json=shareTitle,proto3" json:"share_title,omitempty"` // 5链接的标题; + ShareDesc string `protobuf:"bytes,4,opt,name=share_desc,json=shareDesc,proto3" json:"share_desc,omitempty"` // 5链接的描述; + ShareUrl string `protobuf:"bytes,5,opt,name=share_url,json=shareUrl,proto3" json:"share_url,omitempty"` // 5链接的URL; + FileUrl string `protobuf:"bytes,6,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"` // 3图片的url;4视频的Url;5链接的分享图;8表情的url(gif);9文件的url; + ShareUserName string `protobuf:"bytes,7,opt,name=share_user_name,json=shareUserName,proto3" json:"share_user_name,omitempty"` // 7名片的被分享(名片)好友id; + ShareNickName string `protobuf:"bytes,8,opt,name=share_nick_name,json=shareNickName,proto3" json:"share_nick_name,omitempty"` // 7名片的被分享(名片)的昵称; + AtMsgItem []*AtMsgItem `protobuf:"bytes,9,rep,name=at_msg_item,json=atMsgItem,proto3" json:"at_msg_item,omitempty"` // 发送群@部分人消息的数据 + WxMsgType int32 `protobuf:"varint,10,opt,name=wx_msg_type,json=wxMsgType,proto3" json:"wx_msg_type,omitempty"` // 消息类型: 1 文本;2 语音;3 图片;4 视频;5 链接;6 小程序;7 // 名片;8 表情;9 文件;10 验证消息(如好友申请);11 视频号消息;12 // 视频号直播间;13 视频号名片; - //@gotags: bson:"file_size" - FileSize float64 `protobuf:"fixed64,11,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty" bson:"file_size"` // 文件大小KB单位 - //@gotags: bson:"resource_duration" - ResourceDuration int32 `protobuf:"varint,12,opt,name=resource_duration,json=resourceDuration,proto3" json:"resource_duration,omitempty" bson:"resource_duration"` // 媒体时长 统一单位s - //@gotags: bson:"at_user_name" - AtUserName []string `protobuf:"bytes,13,rep,name=at_user_name,json=atUserName,proto3" json:"at_user_name,omitempty" bson:"at_user_name"` // 群聊at消息 - //@gotags: bson:"is_at_myself" - IsAtMyself bool `protobuf:"varint,14,opt,name=is_at_myself,json=isAtMyself,proto3" json:"is_at_myself,omitempty" bson:"is_at_myself"` // 是否有at我自己 单独一个字段 方便维护和查询 + FileSize float64 `protobuf:"fixed64,11,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小KB单位 + ResourceDuration int32 `protobuf:"varint,12,opt,name=resource_duration,json=resourceDuration,proto3" json:"resource_duration,omitempty"` // 媒体时长 统一单位s + AtUserName []string `protobuf:"bytes,13,rep,name=at_user_name,json=atUserName,proto3" json:"at_user_name,omitempty"` // 群聊at消息 + IsAtMyself bool `protobuf:"varint,14,opt,name=is_at_myself,json=isAtMyself,proto3" json:"is_at_myself,omitempty"` // 是否有at我自己 单独一个字段 方便维护和查询 } func (x *ContentData) Reset() { @@ -1524,14 +1406,10 @@ type AtMsgItem struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"sub_type" - SubType int32 `protobuf:"varint,1,opt,name=SubType,proto3" json:"SubType,omitempty" bson:"sub_type"` // 0:文本内容,1:@某人 - //@gotags: bson:"content" - Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty" bson:"content"` // 文本内容 - //@gotags: bson:"user_name" - UserName string `protobuf:"bytes,3,opt,name=UserName,proto3" json:"UserName,omitempty" bson:"user_name"` // @的用户(wx_id) - //@gotags: bson:"nick_name" - NickName string `protobuf:"bytes,4,opt,name=NickName,proto3" json:"NickName,omitempty" bson:"nick_name"` // @的昵称 + SubType int32 `protobuf:"varint,1,opt,name=SubType,proto3" json:"SubType,omitempty"` // 0:文本内容,1:@某人 + Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"` // 文本内容 + UserName string `protobuf:"bytes,3,opt,name=UserName,proto3" json:"UserName,omitempty"` // @的用户(wx_id) + NickName string `protobuf:"bytes,4,opt,name=NickName,proto3" json:"NickName,omitempty"` // @的昵称 } func (x *AtMsgItem) Reset() { @@ -1601,26 +1479,16 @@ type ModelSchedTask struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` //任务id - //@gotags: bson:"created_at" - CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` //创建时间 - //@gotags: bson:"updated_at" - UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` //更新时间 - //@gotags: bson:"task_state" - TaskState uint32 `protobuf:"varint,4,opt,name=task_state,json=taskState,proto3" json:"task_state,omitempty" bson:"task_state"` //执行状态 TaskState - //@gotags: bson:"task_type" - TaskType string `protobuf:"bytes,5,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty" bson:"task_type"` //任务类型 自定义的名称 用来区别是哪个模块发起的任务 - //@gotags: bson:"req_id" - ReqId string `protobuf:"bytes,6,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty" bson:"req_id"` //便于查询该任务 指定的id[作用:有些情况 无法直接通过id来查询该记录] - //@gotags: bson:"req_json" - ReqJson string `protobuf:"bytes,7,opt,name=req_json,json=reqJson,proto3" json:"req_json,omitempty" bson:"req_json"` //请求内容 - //@gotags: bson:"rsp_json" - RspJson string `protobuf:"bytes,8,opt,name=rsp_json,json=rspJson,proto3" json:"rsp_json,omitempty" bson:"rsp_json"` //完成后的内容 [成功或者失败的返回] - //@gotags: bson:"robot_wx_id" - RobotWxId string `protobuf:"bytes,9,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty" bson:"robot_wx_id"` //机器人id - //@gotags: bson:"expired_at" - ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty" bson:"expired_at"` //过期时间 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //任务id + CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` //创建时间 + UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` //更新时间 + TaskState uint32 `protobuf:"varint,4,opt,name=task_state,json=taskState,proto3" json:"task_state,omitempty"` //执行状态 TaskState + TaskType string `protobuf:"bytes,5,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` //任务类型 自定义的名称 用来区别是哪个模块发起的任务 + ReqId string `protobuf:"bytes,6,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` //便于查询该任务 指定的id[作用:有些情况 无法直接通过id来查询该记录] + ReqJson string `protobuf:"bytes,7,opt,name=req_json,json=reqJson,proto3" json:"req_json,omitempty"` //请求内容 + RspJson string `protobuf:"bytes,8,opt,name=rsp_json,json=rspJson,proto3" json:"rsp_json,omitempty"` //完成后的内容 [成功或者失败的返回] + RobotWxId string `protobuf:"bytes,9,opt,name=robot_wx_id,json=robotWxId,proto3" json:"robot_wx_id,omitempty"` //机器人id + ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"` //过期时间 } func (x *ModelSchedTask) Reset() { @@ -1731,32 +1599,19 @@ type ModelRobotFriend struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` // 主键ID 机器人id+朋友id md5 - //@gotags: bson:"robot_wechat_id" - RobotWechatId string `protobuf:"bytes,2,opt,name=robot_wechat_id,json=robotWechatId,proto3" json:"robot_wechat_id,omitempty" bson:"robot_wechat_id"` // 机器人编号:微信ID - //@gotags: bson:"user_wechat_id" - UserWechatId string `protobuf:"bytes,3,opt,name=user_wechat_id,json=userWechatId,proto3" json:"user_wechat_id,omitempty" bson:"user_wechat_id"` // 用户微信ID, - //@gotags: bson:"deleted" - Deleted int64 `protobuf:"varint,4,opt,name=deleted,proto3" json:"deleted,omitempty" bson:"deleted"` // 是否被删除 0双方未删除 1被好友删除 2删除了好友 3互相删除 - //@gotags: bson:"offline_add" - OfflineAdd int64 `protobuf:"varint,5,opt,name=offline_add,json=offlineAdd,proto3" json:"offline_add,omitempty" bson:"offline_add"` // 是否为离线添加 - //@gotags: bson:"remark_name" - RemarkName string `protobuf:"bytes,6,opt,name=remark_name,json=remarkName,proto3" json:"remark_name,omitempty" bson:"remark_name"` // 微信好友备注名称 - //@gotags: bson:"pinyin" - Pinyin string `protobuf:"bytes,7,opt,name=pinyin,proto3" json:"pinyin,omitempty" bson:"pinyin"` // 用户备注或者暱称的拼音 - //@gotags: bson:"pinyin_head" - PinyinHead string `protobuf:"bytes,8,opt,name=pinyin_head,json=pinyinHead,proto3" json:"pinyin_head,omitempty" bson:"pinyin_head"` // 拼音首字母 - //@gotags: bson:"delete_time" - DeleteTime int64 `protobuf:"varint,9,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty" bson:"delete_time"` // 删除好友的时间 - //@gotags: bson:"create_time" - CreateTime int64 `protobuf:"varint,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" bson:"create_time"` // 创建时间:入库时间 - //@gotags: bson:"update_time" - UpdateTime int64 `protobuf:"varint,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" bson:"update_time"` // 更新时间 - //@gotags: bson:"add_at" - AddAt int64 `protobuf:"varint,12,opt,name=add_at,json=addAt,proto3" json:"add_at,omitempty" bson:"add_at"` // 添加好友时间只有主动添加好友才有 - //@gotags: bson:"crm_phone" - CrmPhone string `protobuf:"bytes,13,opt,name=crm_phone,json=crmPhone,proto3" json:"crm_phone,omitempty" bson:"crm_phone"` // CRM自己设置的好友手机号,不同于微信手机号 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 主键ID 机器人id+朋友id md5 + RobotWechatId string `protobuf:"bytes,2,opt,name=robot_wechat_id,json=robotWechatId,proto3" json:"robot_wechat_id,omitempty"` // 机器人编号:微信ID + UserWechatId string `protobuf:"bytes,3,opt,name=user_wechat_id,json=userWechatId,proto3" json:"user_wechat_id,omitempty"` // 用户微信ID, + Deleted int64 `protobuf:"varint,4,opt,name=deleted,proto3" json:"deleted,omitempty"` // 是否被删除 0双方未删除 1被好友删除 2删除了好友 3互相删除 + OfflineAdd int64 `protobuf:"varint,5,opt,name=offline_add,json=offlineAdd,proto3" json:"offline_add,omitempty"` // 是否为离线添加 + RemarkName string `protobuf:"bytes,6,opt,name=remark_name,json=remarkName,proto3" json:"remark_name,omitempty"` // 微信好友备注名称 + Pinyin string `protobuf:"bytes,7,opt,name=pinyin,proto3" json:"pinyin,omitempty"` // 用户备注或者暱称的拼音 + PinyinHead string `protobuf:"bytes,8,opt,name=pinyin_head,json=pinyinHead,proto3" json:"pinyin_head,omitempty"` // 拼音首字母 + DeleteTime int64 `protobuf:"varint,9,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // 删除好友的时间 + CreateTime int64 `protobuf:"varint,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间:入库时间 + UpdateTime int64 `protobuf:"varint,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间 + AddAt int64 `protobuf:"varint,12,opt,name=add_at,json=addAt,proto3" json:"add_at,omitempty"` // 添加好友时间只有主动添加好友才有 + CrmPhone string `protobuf:"bytes,13,opt,name=crm_phone,json=crmPhone,proto3" json:"crm_phone,omitempty"` // CRM自己设置的好友手机号,不同于微信手机号 } func (x *ModelRobotFriend) Reset() { @@ -1888,20 +1743,13 @@ type ModelWsConnectRecord struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` // 主键ID wxid md5 - //@gotags: bson:"user_id" - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" bson:"user_id"` // 机器人所属用户id - //@gotags: bson:"created_at" - CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` // 记录创建时间 - //@gotags: bson:"login_at" - LoginAt int64 `protobuf:"varint,4,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty" bson:"login_at"` // 登录时间 - //@gotags: bson:"logout_at" - LogoutAt int64 `protobuf:"varint,5,opt,name=logout_at,json=logoutAt,proto3" json:"logout_at,omitempty" bson:"logout_at"` // 登出时间 - //@gotags: bson:"bind_id" - BindId string `protobuf:"bytes,6,opt,name=bind_id,json=bindId,proto3" json:"bind_id,omitempty" bson:"bind_id"` // 该ws绑定的id - //@gotags: bson:"expired_at" - ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty" bson:"expired_at"` // 过期时间 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 主键ID wxid md5 + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 机器人所属用户id + CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 记录创建时间 + LoginAt int64 `protobuf:"varint,4,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"` // 登录时间 + LogoutAt int64 `protobuf:"varint,5,opt,name=logout_at,json=logoutAt,proto3" json:"logout_at,omitempty"` // 登出时间 + BindId string `protobuf:"bytes,6,opt,name=bind_id,json=bindId,proto3" json:"bind_id,omitempty"` // 该ws绑定的id + ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"` // 过期时间 } func (x *ModelWsConnectRecord) Reset() { @@ -1991,94 +1839,51 @@ type ModelRobot struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - //@gotags: json:"_id" bson:"_id" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"_id" bson:"_id"` // 主键ID wxid md5 - //@gotags: bson:"user_id" - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" bson:"user_id"` // 机器人所属用户id - //@gotags: bson:"crm_shop_id" - CrmShopId string `protobuf:"bytes,3,opt,name=crm_shop_id,json=crmShopId,proto3" json:"crm_shop_id,omitempty" bson:"crm_shop_id"` // 机器人所属商户id - //@gotags: bson:"alias_name" - AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,proto3" json:"alias_name,omitempty" bson:"alias_name"` // 微信号 - //@gotags: bson:"nick_name" - NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty" bson:"nick_name"` // 机器人暱称 - //@gotags: bson:"wechat_id" - WechatId string `protobuf:"bytes,6,opt,name=wechat_id,json=wechatId,proto3" json:"wechat_id,omitempty" bson:"wechat_id"` // 微信唯一ID (wxidxxxxxx) - //@gotags: bson:"wechat_alias" - WechatAlias string `protobuf:"bytes,7,opt,name=wechat_alias,json=wechatAlias,proto3" json:"wechat_alias,omitempty" bson:"wechat_alias"` // 微信ID (用户自己定义的微信号) - //@gotags: bson:"avatar_url" - AvatarUrl string `protobuf:"bytes,8,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty" bson:"avatar_url"` // 机器人头像 - //@gotags: bson:"sex" - Sex int32 `protobuf:"varint,9,opt,name=sex,proto3" json:"sex,omitempty" bson:"sex"` // 性别 0 未知 1 男生 2 女生 - //@gotags: bson:"mobile" - Mobile string `protobuf:"bytes,10,opt,name=mobile,proto3" json:"mobile,omitempty" bson:"mobile"` // 手机号码 - //@gotags: bson:"qrcode" - Qrcode string `protobuf:"bytes,11,opt,name=qrcode,proto3" json:"qrcode,omitempty" bson:"qrcode"` // 机器人二维码 - //@gotags: bson:"status" - Status int64 `protobuf:"varint,12,opt,name=status,proto3" json:"status,omitempty" bson:"status"` // 机器人PC是否在线 10在线 11离线 (兼容之前的pc登录流程和其他接口,这个登录状态不变,补多一个字段代表安卓登录状态) - //@gotags: bson:"limited" - Limited int64 `protobuf:"varint,13,opt,name=limited,proto3" json:"limited,omitempty" bson:"limited"` // 机器人是否被封号 0未封号 1已封号 - //@gotags: bson:"ability_limit" - AbilityLimit int64 `protobuf:"varint,14,opt,name=ability_limit,json=abilityLimit,proto3" json:"ability_limit,omitempty" bson:"ability_limit"` // 机器人是否功能受限 - //@gotags: bson:"init_friend" - InitFriend int64 `protobuf:"varint,15,opt,name=init_friend,json=initFriend,proto3" json:"init_friend,omitempty" bson:"init_friend"` // 机器人初始好友人数 - //@gotags: bson:"now_friend" - NowFriend int64 `protobuf:"varint,16,opt,name=now_friend,json=nowFriend,proto3" json:"now_friend,omitempty" bson:"now_friend"` // 机器人当前好友数量 - //@gotags: bson:"auto_add_friend" - AutoAddFriend int64 `protobuf:"varint,17,opt,name=auto_add_friend,json=autoAddFriend,proto3" json:"auto_add_friend,omitempty" bson:"auto_add_friend"` // 机器人是否自动通过好友请求 0否 1是 - //@gotags: bson:"last_login_time" - LastLoginTime int64 `protobuf:"varint,18,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty" bson:"last_login_time"` // 最后登录时间 - //@gotags: bson:"last_log_out_time" - LastLogOutTime int64 `protobuf:"varint,19,opt,name=last_log_out_time,json=lastLogOutTime,proto3" json:"last_log_out_time,omitempty" bson:"last_log_out_time"` // 最后登出时间 - //@gotags: bson:"last_region_code" - LastRegionCode string `protobuf:"bytes,20,opt,name=last_region_code,json=lastRegionCode,proto3" json:"last_region_code,omitempty" bson:"last_region_code"` // 最后登录的扫码设备的地区编码 - //@gotags: bson:"last_city" - LastCity string `protobuf:"bytes,21,opt,name=last_city,json=lastCity,proto3" json:"last_city,omitempty" bson:"last_city"` // 最后登录的城市名称 - //@gotags: bson:"today_require_time" - TodayRequireTime int64 `protobuf:"varint,22,opt,name=today_require_time,json=todayRequireTime,proto3" json:"today_require_time,omitempty" bson:"today_require_time"` // 当天请求次数 - //@gotags: bson:"last_require_add_friend_time" - LastRequireAddFriendTime int64 `protobuf:"varint,23,opt,name=last_require_add_friend_time,json=lastRequireAddFriendTime,proto3" json:"last_require_add_friend_time,omitempty" bson:"last_require_add_friend_time"` // 上一次请求添加好友的时间 - //@gotags: bson:"crm_auto_add_friend" - CrmAutoAddFriend int64 `protobuf:"varint,24,opt,name=crm_auto_add_friend,json=crmAutoAddFriend,proto3" json:"crm_auto_add_friend,omitempty" bson:"crm_auto_add_friend"` // crm系统自动通过好友 1自动通过 0不自动通过 - //@gotags: bson:"delete_time" - DeleteTime int64 `protobuf:"varint,25,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty" bson:"delete_time"` // 删除时间 - //@gotags: bson:"create_time" - CreateTime int64 `protobuf:"varint,26,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" bson:"create_time"` // 创建时间 - //@gotags: bson:"update_time" - UpdateTime int64 `protobuf:"varint,27,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" bson:"update_time"` // 更新时间 - //@gotags: bson:"log_and_out_time" - LogAndOutTime int64 `protobuf:"varint,28,opt,name=log_and_out_time,json=logAndOutTime,proto3" json:"log_and_out_time,omitempty" bson:"log_and_out_time"` // 登入或者登出都要记录一下 - //@gotags: bson:"android_status" - AndroidStatus int64 `protobuf:"varint,29,opt,name=android_status,json=androidStatus,proto3" json:"android_status,omitempty" bson:"android_status"` // 机器人Android是否在线 10在线 11离线 - //@gotags: bson:"greet_id" - GreetId string `protobuf:"bytes,30,opt,name=greet_id,json=greetId,proto3" json:"greet_id,omitempty" bson:"greet_id"` // 打招呼模板id - //@gotags: bson:"android_wechat_version" - AndroidWechatVersion string `protobuf:"bytes,31,opt,name=android_wechat_version,json=androidWechatVersion,proto3" json:"android_wechat_version,omitempty" bson:"android_wechat_version"` // 微信版本 - //@gotags: bson:"risk_control_group" - RiskControlGroup uint32 `protobuf:"varint,33,opt,name=risk_control_group,json=riskControlGroup,proto3" json:"risk_control_group,omitempty" bson:"risk_control_group"` // 风控分组 - //@gotags: bson:"last_pc_login_at" - LastPcLoginAt int64 `protobuf:"varint,34,opt,name=last_pc_login_at,json=lastPcLoginAt,proto3" json:"last_pc_login_at,omitempty" bson:"last_pc_login_at"` // 最近PC登录时间 - //@gotags: bson:"last_pc_logout_at" - LastPcLogoutAt int64 `protobuf:"varint,35,opt,name=last_pc_logout_at,json=lastPcLogoutAt,proto3" json:"last_pc_logout_at,omitempty" bson:"last_pc_logout_at"` // 最近PC登出时间 - //@gotags: bson:"last_android_login_at" - LastAndroidLoginAt int64 `protobuf:"varint,36,opt,name=last_android_login_at,json=lastAndroidLoginAt,proto3" json:"last_android_login_at,omitempty" bson:"last_android_login_at"` // 最近安卓登录时间 - //@gotags: bson:"last_android_logout_at" - LastAndroidLogoutAt int64 `protobuf:"varint,37,opt,name=last_android_logout_at,json=lastAndroidLogoutAt,proto3" json:"last_android_logout_at,omitempty" bson:"last_android_logout_at"` // 最近安卓登出时间 - //@gotags: bson:"risk_control_task" - RiskControlTask string `protobuf:"bytes,38,opt,name=risk_control_task,json=riskControlTask,proto3" json:"risk_control_task,omitempty" bson:"risk_control_task"` // 风控任务 0是全部,1是回复,2是发消息,3是看朋友圈,4是发朋友圈,5是点赞,6是评论 7是群聊 可组合,如:1,2,3 - //@gotags: bson:"open_for_stranger" - OpenForStranger bool `protobuf:"varint,39,opt,name=open_for_stranger,json=openForStranger,proto3" json:"open_for_stranger,omitempty" bson:"open_for_stranger"` // 是否允许陌生人查看十条朋友圈 - //@gotags: bson:"moment_privacy_type" - MomentPrivacyType int32 `protobuf:"varint,40,opt,name=moment_privacy_type,json=momentPrivacyType,proto3" json:"moment_privacy_type,omitempty" bson:"moment_privacy_type"` // 朋友圈隐私选项类型 - //@gotags: bson:"cover_url" - CoverUrl string `protobuf:"bytes,41,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty" bson:"cover_url"` // 朋友圈封面url - //@gotags: bson:"country" - Country string `protobuf:"bytes,42,opt,name=country,proto3" json:"country,omitempty" bson:"country"` // 国家 - //@gotags: bson:"province" - Province string `protobuf:"bytes,43,opt,name=province,proto3" json:"province,omitempty" bson:"province"` // 省份 - //@gotags: bson:"city" - City string `protobuf:"bytes,44,opt,name=city,proto3" json:"city,omitempty" bson:"city"` // 城市 - //@gotags: bson:"signature" - Signature string `protobuf:"bytes,45,opt,name=signature,proto3" json:"signature,omitempty" bson:"signature"` // 个性签名 + // @json: _id + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 主键ID wxid md5 + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 机器人所属用户id + CrmShopId string `protobuf:"bytes,3,opt,name=crm_shop_id,json=crmShopId,proto3" json:"crm_shop_id,omitempty"` // 机器人所属商户id + AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,proto3" json:"alias_name,omitempty"` // 微信号 + NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` // 机器人暱称 + WechatId string `protobuf:"bytes,6,opt,name=wechat_id,json=wechatId,proto3" json:"wechat_id,omitempty"` // 微信唯一ID (wxidxxxxxx) + WechatAlias string `protobuf:"bytes,7,opt,name=wechat_alias,json=wechatAlias,proto3" json:"wechat_alias,omitempty"` // 微信ID (用户自己定义的微信号) + AvatarUrl string `protobuf:"bytes,8,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 机器人头像 + Sex int32 `protobuf:"varint,9,opt,name=sex,proto3" json:"sex,omitempty"` // 性别 0 未知 1 男生 2 女生 + Mobile string `protobuf:"bytes,10,opt,name=mobile,proto3" json:"mobile,omitempty"` // 手机号码 + Qrcode string `protobuf:"bytes,11,opt,name=qrcode,proto3" json:"qrcode,omitempty"` // 机器人二维码 + Status int64 `protobuf:"varint,12,opt,name=status,proto3" json:"status,omitempty"` // 机器人PC是否在线 10在线 11离线 (兼容之前的pc登录流程和其他接口,这个登录状态不变,补多一个字段代表安卓登录状态) + Limited int64 `protobuf:"varint,13,opt,name=limited,proto3" json:"limited,omitempty"` // 机器人是否被封号 0未封号 1已封号 + AbilityLimit int64 `protobuf:"varint,14,opt,name=ability_limit,json=abilityLimit,proto3" json:"ability_limit,omitempty"` // 机器人是否功能受限 + InitFriend int64 `protobuf:"varint,15,opt,name=init_friend,json=initFriend,proto3" json:"init_friend,omitempty"` // 机器人初始好友人数 + NowFriend int64 `protobuf:"varint,16,opt,name=now_friend,json=nowFriend,proto3" json:"now_friend,omitempty"` // 机器人当前好友数量 + AutoAddFriend int64 `protobuf:"varint,17,opt,name=auto_add_friend,json=autoAddFriend,proto3" json:"auto_add_friend,omitempty"` // 机器人是否自动通过好友请求 0否 1是 + LastLoginTime int64 `protobuf:"varint,18,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` // 最后登录时间 + LastLogOutTime int64 `protobuf:"varint,19,opt,name=last_log_out_time,json=lastLogOutTime,proto3" json:"last_log_out_time,omitempty"` // 最后登出时间 + LastRegionCode string `protobuf:"bytes,20,opt,name=last_region_code,json=lastRegionCode,proto3" json:"last_region_code,omitempty"` // 最后登录的扫码设备的地区编码 + LastCity string `protobuf:"bytes,21,opt,name=last_city,json=lastCity,proto3" json:"last_city,omitempty"` // 最后登录的城市名称 + TodayRequireTime int64 `protobuf:"varint,22,opt,name=today_require_time,json=todayRequireTime,proto3" json:"today_require_time,omitempty"` // 当天请求次数 + LastRequireAddFriendTime int64 `protobuf:"varint,23,opt,name=last_require_add_friend_time,json=lastRequireAddFriendTime,proto3" json:"last_require_add_friend_time,omitempty"` // 上一次请求添加好友的时间 + CrmAutoAddFriend int64 `protobuf:"varint,24,opt,name=crm_auto_add_friend,json=crmAutoAddFriend,proto3" json:"crm_auto_add_friend,omitempty"` // crm系统自动通过好友 1自动通过 0不自动通过 + DeleteTime int64 `protobuf:"varint,25,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // 删除时间 + CreateTime int64 `protobuf:"varint,26,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间 + UpdateTime int64 `protobuf:"varint,27,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间 + LogAndOutTime int64 `protobuf:"varint,28,opt,name=log_and_out_time,json=logAndOutTime,proto3" json:"log_and_out_time,omitempty"` // 登入或者登出都要记录一下 + AndroidStatus int64 `protobuf:"varint,29,opt,name=android_status,json=androidStatus,proto3" json:"android_status,omitempty"` // 机器人Android是否在线 10在线 11离线 + GreetId string `protobuf:"bytes,30,opt,name=greet_id,json=greetId,proto3" json:"greet_id,omitempty"` // 打招呼模板id + AndroidWechatVersion string `protobuf:"bytes,31,opt,name=android_wechat_version,json=androidWechatVersion,proto3" json:"android_wechat_version,omitempty"` // 微信版本 + RiskControlGroup uint32 `protobuf:"varint,33,opt,name=risk_control_group,json=riskControlGroup,proto3" json:"risk_control_group,omitempty"` // 风控分组 + LastPcLoginAt int64 `protobuf:"varint,34,opt,name=last_pc_login_at,json=lastPcLoginAt,proto3" json:"last_pc_login_at,omitempty"` // 最近PC登录时间 + LastPcLogoutAt int64 `protobuf:"varint,35,opt,name=last_pc_logout_at,json=lastPcLogoutAt,proto3" json:"last_pc_logout_at,omitempty"` // 最近PC登出时间 + LastAndroidLoginAt int64 `protobuf:"varint,36,opt,name=last_android_login_at,json=lastAndroidLoginAt,proto3" json:"last_android_login_at,omitempty"` // 最近安卓登录时间 + LastAndroidLogoutAt int64 `protobuf:"varint,37,opt,name=last_android_logout_at,json=lastAndroidLogoutAt,proto3" json:"last_android_logout_at,omitempty"` // 最近安卓登出时间 + RiskControlTask string `protobuf:"bytes,38,opt,name=risk_control_task,json=riskControlTask,proto3" json:"risk_control_task,omitempty"` // 风控任务 0是全部,1是回复,2是发消息,3是看朋友圈,4是发朋友圈,5是点赞,6是评论 7是群聊 可组合,如:1,2,3 + OpenForStranger bool `protobuf:"varint,39,opt,name=open_for_stranger,json=openForStranger,proto3" json:"open_for_stranger,omitempty"` // 是否允许陌生人查看十条朋友圈 + MomentPrivacyType int32 `protobuf:"varint,40,opt,name=moment_privacy_type,json=momentPrivacyType,proto3" json:"moment_privacy_type,omitempty"` // 朋友圈隐私选项类型 + CoverUrl string `protobuf:"bytes,41,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 朋友圈封面url + Country string `protobuf:"bytes,42,opt,name=country,proto3" json:"country,omitempty"` // 国家 + Province string `protobuf:"bytes,43,opt,name=province,proto3" json:"province,omitempty"` // 省份 + City string `protobuf:"bytes,44,opt,name=city,proto3" json:"city,omitempty"` // 城市 + Signature string `protobuf:"bytes,45,opt,name=signature,proto3" json:"signature,omitempty"` // 个性签名 } func (x *ModelRobot) Reset() {