resp

package
v0.0.0-...-e0ca84f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const IOErrorCode int = -3

IOErrorCode : IO错误码

View Source
const IOErrorCodeMsg string = "IO出错"

IOErrorCodeMsg : IO错误码信息

View Source
const JSONParseErrorCode int = -2

JSONParseErrorCode : json解析错误

View Source
const JSONParseErrorCodeMsg string = "json解析错误"

JSONParseErrorCodeMsg : json解析错误文本

View Source
const NetWorkErrorCode int = -1

NetWorkErrorCode : 网络错误码

View Source
const NetWorkErrorCodeMsg string = "网络错误"

NetWorkErrorCodeMsg : 网络错误信息

Variables

This section is empty.

Functions

This section is empty.

Types

type AttitudeAndTotalNumberResp

type AttitudeAndTotalNumberResp struct {
	Attitudes     []bean.Attitude `json:"attitudes"`
	TotalNumber   int64           `json:"total_number"`
	PeviousCursor int64           `json:"previous_cursor"`
	NextCursor    int64           `json:"next_cursor"`
}

AttitudeAndTotalNumberResp : 赞列表和总数

type AttitudesShowBizResp

type AttitudesShowBizResp struct {
	AttitudeAndTotalNumberResp
}

AttitudesShowBizResp : 某条信息的赞列表

type AttitudesToMeBizResp

type AttitudesToMeBizResp struct {
	AttitudeAndTotalNumberResp
}

AttitudesToMeBizResp : 收到的赞的对象

type CommentsAndTotalNumberResp

type CommentsAndTotalNumberResp struct {
	Comments      []bean.Comment `json:"comments"`
	TotalNumber   int64          `json:"total_number"`
	PeviousCursor int64          `json:"previous_cursor"`
	NextCursor    int64          `json:"next_cursor"`
}

CommentsAndTotalNumberResp : 评论与总数的结果对象

type CommentsByMeBizResp

type CommentsByMeBizResp struct {
	CommentsAndTotalNumberResp
}

CommentsByMeBizResp : 获取当前登录用户发出的评论列表

type CommentsByMeOtherResp

type CommentsByMeOtherResp struct {
	CommentsAndTotalNumberResp
}

CommentsByMeOtherResp : 获取某个用户发出的评论列表

type CommentsCreateBizResp

type CommentsCreateBizResp struct {
	bean.Comment
}

CommentsCreateBizResp : 评论一条微博

type CommentsDestroyBizResp

type CommentsDestroyBizResp struct {
	bean.Comment
}

CommentsDestroyBizResp : 删除一条评论 的返回对象

type CommentsMentionsBizResp

type CommentsMentionsBizResp struct {
	CommentsAndTotalNumberResp
}

CommentsMentionsBizResp : 获取@当前登录用户的评论

type CommentsMentionsOtherResp

type CommentsMentionsOtherResp struct {
	CommentsAndTotalNumberResp
}

CommentsMentionsOtherResp :获取@某人的评论。

type CommentsReplyBizResp

type CommentsReplyBizResp struct {
	bean.Comment
}

CommentsReplyBizResp : 回复一条评论的返回对象

type CommentsShowAllResp

type CommentsShowAllResp struct {
	CommentsAndTotalNumberResp
}

CommentsShowAllResp :返回一条微博的全部评论列表的结果对象

type CommentsShowBatchBizResp

type CommentsShowBatchBizResp struct {
	bean.Comment
}

CommentsShowBatchBizResp : 批量获取评论内容,返回的是数组

type CommentsShowBizResp

type CommentsShowBizResp struct {
	CommentsAndTotalNumberResp
}

CommentsShowBizResp : 获取当前登录用户发布的微博下的评论列表 结果对象

type CommentsTimelineBizResp

type CommentsTimelineBizResp struct {
	CommentsAndTotalNumberResp
}

CommentsTimelineBizResp : 获取当前登录用户发出及收到的评论列表 响应对象

type CommentsTimelineOtherResp

type CommentsTimelineOtherResp struct {
	CommentsAndTotalNumberResp
}

CommentsTimelineOtherResp : 获取某个用户发出和收到的评论列表结果对象

type CommentsToMeBizResp

type CommentsToMeBizResp struct {
	CommentsAndTotalNumberResp
}

CommentsToMeBizResp : 获取当前登录用户收到的评论列表结果对象

type CommentsToMeOtherResp

type CommentsToMeOtherResp struct {
	CommentsAndTotalNumberResp
}

CommentsToMeOtherResp : 获取某个用户收到的评论列表

type ErrorResp

type ErrorResp struct {
	Request   string `json:"request"`
	ErrorCode int    `json:"error_code"`
	Error     string `json:"error"`
}

ErrorResp : 错误码返回对象

func (*ErrorResp) String

func (errorResp *ErrorResp) String() string

type FriendshipsCreateBizResp

type FriendshipsCreateBizResp struct {
	bean.User
}

FriendshipsCreateBizResp : 关注某用户

type FriendshipsDestroyBizResp

type FriendshipsDestroyBizResp struct {
	bean.User
}

FriendshipsDestroyBizResp : 取消关注的用户

type FriendshipsFollowersBizResp

type FriendshipsFollowersBizResp struct {
	UsersAndTotalNumberResp
}

FriendshipsFollowersBizResp : 获取当前登录用户的粉丝列表

type FriendshipsFollowersDestroyBizResp

type FriendshipsFollowersDestroyBizResp struct {
	bean.User
}

FriendshipsFollowersDestroyBizResp : 移除当前登录用户的粉丝

type FriendshipsFriendsBizResp

type FriendshipsFriendsBizResp struct {
	UsersAndTotalNumberResp
}

FriendshipsFriendsBizResp : 获取当前登录用户的关注列表

type FriendshipsRemarkUpdateBizResp

type FriendshipsRemarkUpdateBizResp struct {
	bean.User
}

FriendshipsRemarkUpdateBizResp : 更新关注人备注

type PlaceUserTimelineOtherResp

type PlaceUserTimelineOtherResp struct {
	StatusAndTotalNumberResp
}

PlaceUserTimelineOtherResp :获取某个用户的位置动态的结果对象

type SearchStatusesLimitedResp

type SearchStatusesLimitedResp struct {
	StatusAndTotalNumberResp
}

SearchStatusesLimitedResp : 关键词搜索的结果的对象

type SearchSuggestionsUsersBizResp

type SearchSuggestionsUsersBizResp struct {
	bean.SearchSuggestionsUser
}

SearchSuggestionsUsersBizResp : 搜用户搜索建议,返回的是数组

type StatusAndTotalNumberResp

type StatusAndTotalNumberResp struct {
	Statuses      []bean.Status `json:"statuses"`
	TotalNumber   int64         `json:"total_number"`
	PeviousCursor int64         `json:"previous_cursor"`
	NextCursor    int64         `json:"next_cursor"`
}

StatusAndTotalNumberResp : 获取@某人的微博的结果的对象

type StatusesCountBizResp

type StatusesCountBizResp struct {
	ID       string `json:"id"`
	Comments string `json:"comments"`
	Reposts  string `json:"reposts"`
	Likes    string `json:"likes"`
}

StatusesCountBizResp : 批量获取指定微博的转发数评论数喜欢数 响应对象 返回的结果是这个类型的数组

[

 {
     "id": "32817222",
     "comments": "16",
     "reposts": "38",
     "likes": "38"
 },
...

]

type StatusesDestroyBizResp

type StatusesDestroyBizResp struct {
	bean.Status
}

StatusesDestroyBizResp : 删除一条微博的返回 对象

type StatusesFilterCreateBizResp

type StatusesFilterCreateBizResp struct {
	bean.Status
}

StatusesFilterCreateBizResp : 屏蔽某条微博 结果

type StatusesFriendsTimelineBizResp

type StatusesFriendsTimelineBizResp struct {
	StatusAndTotalNumberResp
}

StatusesFriendsTimelineBizResp : 获取当前登录用户及其所关注用户的最新微博

type StatusesMentionsBizResp

type StatusesMentionsBizResp struct {
	StatusAndTotalNumberResp
}

StatusesMentionsBizResp : 获取@当前登录用户的微博列表

type StatusesMentionsOtherResp

type StatusesMentionsOtherResp struct {
	StatusAndTotalNumberResp
}

StatusesMentionsOtherResp : 获取@某人的微博的结果的对象

type StatusesMentionsShieldBizResp

type StatusesMentionsShieldBizResp struct {
	Result string `json:"result"`
}

StatusesMentionsShieldBizResp : 屏蔽某个@我的微博及后续由其转发引起的@提及 api结果对象 文档写着返回的是:

{
    "result":true
}

实际返回的是 "result":"true"

type StatusesPublicTimelineBizResp

type StatusesPublicTimelineBizResp struct {
	StatusAndTotalNumberResp
}

StatusesPublicTimelineBizResp : 获取最新的公共微博

type StatusesRepostAndTotalNumberResp

type StatusesRepostAndTotalNumberResp struct {
	Reposts       []bean.Status `json:"reposts"`
	PeviousCursor int64         `json:"previous_cursor"`
	NextCursor    int64         `json:"next_cursor"`
	TotalNumber   int64         `json:"total_number"`
}

StatusesRepostAndTotalNumberResp : 转发微博的结果(数据和totalNumber)

type StatusesRepostBizResp

type StatusesRepostBizResp struct {
	bean.Status
}

StatusesRepostBizResp : 转发一条微博的响应对象

type StatusesRepostTimelineAllResp

type StatusesRepostTimelineAllResp struct {
	StatusesRepostAndTotalNumberResp
}

StatusesRepostTimelineAllResp :返回一条微博的全部转发微博列表的结果对象

type StatusesRepostTimelineBizResp

type StatusesRepostTimelineBizResp struct {
	StatusesRepostAndTotalNumberResp
}

StatusesRepostTimelineBizResp : 获取当前登录用户发布的一条原创微博的最新转发微博

type StatusesShowBatchBizResp

type StatusesShowBatchBizResp struct {
	StatusAndTotalNumberResp
}

StatusesShowBatchBizResp : 根据微博ID批量获取微博信息 响应对象

type StatusesUpdateBizResp

type StatusesUpdateBizResp struct {
	bean.Status
}

StatusesUpdateBizResp : 发布一条微博信息 响应对象

type StatusesUploadBizResp

type StatusesUploadBizResp struct {
	bean.Status
}

StatusesUploadBizResp : 上传图片并发布一条微博

type StatusesUploadURLTextBizResp

type StatusesUploadURLTextBizResp struct {
	bean.Status
}

StatusesUploadURLTextBizResp : 发布一条微博同时指定上传的图片或图片url 结果对象

type StatusesUserTimelineBatchResp

type StatusesUserTimelineBatchResp struct {
	StatusAndTotalNumberResp
}

StatusesUserTimelineBatchResp :返回一条微博的全部转发微博列表的结果对象

type StatusesUserTimelineBizResp

type StatusesUserTimelineBizResp struct {
	StatusAndTotalNumberResp
}

StatusesUserTimelineBizResp : 获取当前登录用户发布的微博

type TagsBizResp

type TagsBizResp struct {
	Body string
}

TagsBizResp : 当前登录用户 的标签

func (TagsBizResp) GetTags

func (t TagsBizResp) GetTags() (resp []map[string]interface{})

GetTags 将返回的结果转换为map数组

type TagsTagsBatchOtherResp

type TagsTagsBatchOtherResp struct {
	bean.Tag
}

TagsTagsBatchOtherResp :批量获取用户标签结果对象

[{"id":5225532117,"tags":[{"201103260002460337":"美图摄影","weight":"7069191","flag":"0"}]}]

type UsersAndTotalNumberResp

type UsersAndTotalNumberResp struct {
	Users         []bean.User `json:"users"`
	TotalNumber   int64       `json:"total_number"`
	PeviousCursor int64       `json:"previous_cursor"`
	NextCursor    int64       `json:"next_cursor"`
}

UsersAndTotalNumberResp : 用户和总数的结果对象

type UsersCountsBatchOtherResp

type UsersCountsBatchOtherResp struct {
	ID                string `json:"id"`
	FollowersCount    string `json:"followers_count"`
	FriendsCount      string `json:"friends_count"`
	MutualFriendCount string `json:"mutual_friend_count"`
	StatusesCount     string `json:"statuses_count"`
}

UsersCountsBatchOtherResp : 批量获取用户的粉丝数、关注数、微博数

type UsersShowBatchOtherResp

type UsersShowBatchOtherResp struct {
	UsersAndTotalNumberResp
}

UsersShowBatchOtherResp :批量获取其他用户的基本信息结果对象

type UsersShowBizResp

type UsersShowBizResp struct {
	bean.User
}

UsersShowBizResp : 当前用户登录信息

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL