mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-16 18:52:27 +08:00
调整结构体中CreateTime (#691)
* fix: 修改FollowInfo结构体中的tag标签为createtime * fix: 统一CreateTime为int64 * chore: format * chore: format
This commit is contained in:
@@ -40,8 +40,8 @@ type ResCode2Session struct {
|
|||||||
type RspCheckEncryptedData struct {
|
type RspCheckEncryptedData struct {
|
||||||
util.CommonError
|
util.CommonError
|
||||||
|
|
||||||
Vaild bool `json:"vaild"` // 是否是合法的数据
|
Vaild bool `json:"vaild"` // 是否是合法的数据
|
||||||
CreateTime uint `json:"create_time"` // 加密数据生成的时间戳
|
CreateTime uint64 `json:"create_time"` // 加密数据生成的时间戳
|
||||||
}
|
}
|
||||||
|
|
||||||
// Code2Session 登录凭证校验。
|
// Code2Session 登录凭证校验。
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ type FollowUser struct {
|
|||||||
UserID string `json:"userid"`
|
UserID string `json:"userid"`
|
||||||
Remark string `json:"remark"`
|
Remark string `json:"remark"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
CreateTime string `json:"create_time"`
|
CreateTime int64 `json:"createtime"`
|
||||||
Tags []Tag `json:"tags"`
|
Tags []Tag `json:"tags"`
|
||||||
RemarkCorpName string `json:"remark_corp_name"`
|
RemarkCorpName string `json:"remark_corp_name"`
|
||||||
RemarkMobiles []string `json:"remark_mobiles"`
|
RemarkMobiles []string `json:"remark_mobiles"`
|
||||||
@@ -169,7 +169,7 @@ type FollowInfo struct {
|
|||||||
UserID string `json:"userid"`
|
UserID string `json:"userid"`
|
||||||
Remark string `json:"remark"`
|
Remark string `json:"remark"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
CreateTime int `json:"create_time"`
|
CreateTime int64 `json:"createtime"`
|
||||||
TagID []string `json:"tag_id"`
|
TagID []string `json:"tag_id"`
|
||||||
RemarkCorpName string `json:"remark_corp_name"`
|
RemarkCorpName string `json:"remark_corp_name"`
|
||||||
RemarkMobiles []string `json:"remark_mobiles"`
|
RemarkMobiles []string `json:"remark_mobiles"`
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ type (
|
|||||||
ChatID string `json:"chat_id"` //客户群ID
|
ChatID string `json:"chat_id"` //客户群ID
|
||||||
Name string `json:"name"` //群名
|
Name string `json:"name"` //群名
|
||||||
Owner string `json:"owner"` //群主ID
|
Owner string `json:"owner"` //群主ID
|
||||||
CreateTime int `json:"create_time"` //群的创建时间
|
CreateTime int64 `json:"create_time"` //群的创建时间
|
||||||
Notice string `json:"notice"` //群公告
|
Notice string `json:"notice"` //群公告
|
||||||
MemberList []GroupChatMember `json:"member_list"` //群成员列表
|
MemberList []GroupChatMember `json:"member_list"` //群成员列表
|
||||||
AdminList []GroupChatAdmin `json:"admin_list"` //群管理员列表
|
AdminList []GroupChatAdmin `json:"admin_list"` //群管理员列表
|
||||||
|
|||||||
@@ -111,8 +111,8 @@ func (r *Client) AddMsgTemplate(req *AddMsgTemplateRequest) (*AddMsgTemplateResp
|
|||||||
// GetGroupMsgListV2Request 获取群发记录列表请求
|
// GetGroupMsgListV2Request 获取群发记录列表请求
|
||||||
type GetGroupMsgListV2Request struct {
|
type GetGroupMsgListV2Request struct {
|
||||||
ChatType string `json:"chat_type"`
|
ChatType string `json:"chat_type"`
|
||||||
StartTime int `json:"start_time"`
|
StartTime int64 `json:"start_time"`
|
||||||
EndTime int `json:"end_time"`
|
EndTime int64 `json:"end_time"`
|
||||||
Creator string `json:"creator,omitempty"`
|
Creator string `json:"creator,omitempty"`
|
||||||
FilterType int `json:"filter_type"`
|
FilterType int `json:"filter_type"`
|
||||||
Limit int `json:"limit"`
|
Limit int `json:"limit"`
|
||||||
@@ -130,7 +130,7 @@ type GetGroupMsgListV2Response struct {
|
|||||||
type GroupMsg struct {
|
type GroupMsg struct {
|
||||||
MsgID string `json:"msgid"`
|
MsgID string `json:"msgid"`
|
||||||
Creator string `json:"creator"`
|
Creator string `json:"creator"`
|
||||||
CreateTime int `json:"create_time"`
|
CreateTime int64 `json:"create_time"`
|
||||||
CreateType int `json:"create_type"`
|
CreateType int `json:"create_type"`
|
||||||
Text MsgText `json:"text"`
|
Text MsgText `json:"text"`
|
||||||
Attachments []*Attachment `json:"attachments"`
|
Attachments []*Attachment `json:"attachments"`
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ type GetCropTagListResponse struct {
|
|||||||
type TagGroup struct {
|
type TagGroup struct {
|
||||||
GroupID string `json:"group_id"`
|
GroupID string `json:"group_id"`
|
||||||
GroupName string `json:"group_name"`
|
GroupName string `json:"group_name"`
|
||||||
CreateTime int `json:"create_time"`
|
CreateTime int64 `json:"create_time"`
|
||||||
GroupOrder int `json:"group_order"`
|
GroupOrder int `json:"group_order"`
|
||||||
Deleted bool `json:"deleted"`
|
Deleted bool `json:"deleted"`
|
||||||
Tag []TagGroupTagItem `json:"tag"`
|
Tag []TagGroupTagItem `json:"tag"`
|
||||||
@@ -54,7 +54,7 @@ type TagGroup struct {
|
|||||||
type TagGroupTagItem struct {
|
type TagGroupTagItem struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
CreateTime int `json:"create_time"`
|
CreateTime int64 `json:"create_time"`
|
||||||
Order int `json:"order"`
|
Order int `json:"order"`
|
||||||
Deleted bool `json:"deleted"`
|
Deleted bool `json:"deleted"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ type callbackOriginMessage struct {
|
|||||||
// CallbackMessage 微信客服回调消息
|
// CallbackMessage 微信客服回调消息
|
||||||
type CallbackMessage struct {
|
type CallbackMessage struct {
|
||||||
ToUserName string `json:"to_user_name" xml:"ToUserName"` // 微信客服组件ID
|
ToUserName string `json:"to_user_name" xml:"ToUserName"` // 微信客服组件ID
|
||||||
CreateTime int `json:"create_time" xml:"CreateTime"` // 消息创建时间,unix时间戳
|
CreateTime int64 `json:"create_time" xml:"CreateTime"` // 消息创建时间,unix时间戳
|
||||||
MsgType string `json:"msgtype" xml:"MsgType"` // 消息的类型,此时固定为 event
|
MsgType string `json:"msgtype" xml:"MsgType"` // 消息的类型,此时固定为 event
|
||||||
Event string `json:"event" xml:"Event"` // 事件的类型,此时固定为 kf_msg_or_event
|
Event string `json:"event" xml:"Event"` // 事件的类型,此时固定为 kf_msg_or_event
|
||||||
Token string `json:"token" xml:"Token"` // 调用拉取消息接口时,需要传此token,用于校验请求的合法性
|
Token string `json:"token" xml:"Token"` // 调用拉取消息接口时,需要传此token,用于校验请求的合法性
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ type CollectMessage struct {
|
|||||||
Collect struct {
|
Collect struct {
|
||||||
RoomName string `json:"room_name,omitempty"` // 填表消息所在的群名称。
|
RoomName string `json:"room_name,omitempty"` // 填表消息所在的群名称。
|
||||||
Creator string `json:"creator,omitempty"` // 创建者在群中的名字
|
Creator string `json:"creator,omitempty"` // 创建者在群中的名字
|
||||||
CreateTime string `json:"create_time,omitempty"` // 创建的时间
|
CreateTime int64 `json:"create_time,omitempty"` // 创建的时间
|
||||||
Details []CollectDetails `json:"details,omitempty"` // 表内容
|
Details []CollectDetails `json:"details,omitempty"` // 表内容
|
||||||
} `json:"collect,omitempty"`
|
} `json:"collect,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user