response

package
v0.0.0-...-f9b5f64 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentErr

func CommentErr(c *app.RequestContext, err error)

CommentErr 返回错误信息

func CommentListErr

func CommentListErr(c *app.RequestContext, err error)

CommentListErr 返回错误信息

func CommentListOk

func CommentListOk(c *app.RequestContext, err error, commentList []*comment.Comment)

CommentListOk 返回正确信息

func CommentOk

func CommentOk(c *app.RequestContext, err error, comment *comment.Comment)

CommentOk 返回正确信息

func FavoriteErr

func FavoriteErr(c *app.RequestContext, err error)

FavoriteErr 返回错误信息

func FavoriteListErr

func FavoriteListErr(c *app.RequestContext, err error)

FavoriteListErr 返回错误信息

func FavoriteListOk

func FavoriteListOk(c *app.RequestContext, err error, VideoList []*video.Video)

FavoriteListOk 返回正确信息

func FavoriteOk

func FavoriteOk(c *app.RequestContext, err error)

FavoriteOk 返回正确信息

func FeedErr

func FeedErr(c *app.RequestContext, err error)

FeedErr 返回错误信息

func FeedOK

func FeedOK(c *app.RequestContext, err error, videos []*video.Video, nextTime int64)

FeedOK 返回正确信息

func FollowListErr

func FollowListErr(c *app.RequestContext, err error)

FollowListErr 返回错误信息

func FollowListOk

func FollowListOk(c *app.RequestContext, err error, UserList []*user.User)

FollowListOk 返回正确信息

func FollowerListErr

func FollowerListErr(c *app.RequestContext, err error)

FollowerListErr 返回错误信息

func FollowerListOk

func FollowerListOk(c *app.RequestContext, err error, UserList []*user.User)

FollowerListOk 返回正确信息

func FriendListErr

func FriendListErr(c *app.RequestContext, err error)

FriendListErr 返回错误信息

func FriendListOk

func FriendListOk(c *app.RequestContext, err error, UserList []*relation.FriendUser)

FriendListOk 返回正确信息

func LoginErr

func LoginErr(c *app.RequestContext, err error)

LoginErr 返回错误信息

func LoginOK

func LoginOK(c *app.RequestContext, err error, userid int64, token string)

LoginOK 返回正确信息

func MessageChatErr

func MessageChatErr(c *app.RequestContext, err error)

MessageChatErr 返回错误信息

func MessageChatOk

func MessageChatOk(c *app.RequestContext, err error, MessageList []*message.Message)

MessageChatOk 返回正确信息

func MessageErr

func MessageErr(c *app.RequestContext, err error)

MessageErr 返回错误信息

func MessageOk

func MessageOk(c *app.RequestContext, err error)

MessageOk 返回正确信息

func PublishErr

func PublishErr(c *app.RequestContext, err error)

PublishErr 返回错误信息

func PublishListErr

func PublishListErr(c *app.RequestContext, err error)

PublishListErr 返回错误信息

func PublishListOK

func PublishListOK(c *app.RequestContext, err error, list []*video.Video)

PublishListOK 返回正确信息

func PublishOk

func PublishOk(c *app.RequestContext, err error)

PublishOk 返回正确信息

func RegisterErr

func RegisterErr(c *app.RequestContext, err error)

RegisterErr 返回错误信息

func RegisterOK

func RegisterOK(c *app.RequestContext, err error, userid int64, token string)

RegisterOK 返回正确信息

func RelationErr

func RelationErr(c *app.RequestContext, err error)

RelationErr 返回错误信息

func RelationOk

func RelationOk(c *app.RequestContext, err error)

RelationOk 返回正确信息

func ResponseWithError

func ResponseWithError(ctx context.Context, c *app.RequestContext, request int, s string)

func UserInfoErr

func UserInfoErr(c *app.RequestContext, err error)

UserInfoErr 返回错误信息

func UserInfoOK

func UserInfoOK(c *app.RequestContext, err error, user *user.User)

UserInfoOK 返回正确信息

Types

type CommentListResponse

type CommentListResponse struct {
	CommentList []*comment.Comment `json:"comment_list"`
	// contains filtered or unexported fields
}

type CommentResponse

type CommentResponse struct {
	Comment *comment.Comment `json:"comment"`
	// contains filtered or unexported fields
}

type FavoriteListResponse

type FavoriteListResponse struct {
	VideoList []*video.Video `json:"video_list"`
	// contains filtered or unexported fields
}

type FavoriteResponse

type FavoriteResponse struct {
	// contains filtered or unexported fields
}

type FeedResponse

type FeedResponse struct {
	NextTime  int64          `json:"next_time"`
	VideoList []*video.Video `json:"video_list"`
	// contains filtered or unexported fields
}

type FollowListResponse

type FollowListResponse struct {
	UserList []*user.User `json:"user_list"`
	// contains filtered or unexported fields
}

type FollowerListResponse

type FollowerListResponse struct {
	UserList []*user.User `json:"user_list"`
	// contains filtered or unexported fields
}

type FriendListResponse

type FriendListResponse struct {
	UserList []*relation.FriendUser `json:"user_list"`
	// contains filtered or unexported fields
}

type LoginResponse

type LoginResponse struct {
	UserID int64  `json:"user_id"`
	Token  string `json:"token"`
	// contains filtered or unexported fields
}

type MessageChatResponse

type MessageChatResponse struct {
	MessageList []*message.Message `json:"message_list"`
	// contains filtered or unexported fields
}

type MessageResponse

type MessageResponse struct {
	// contains filtered or unexported fields
}

type PublishListResponse

type PublishListResponse struct {
	VideoList []*video.Video `json:"video_list"`
	// contains filtered or unexported fields
}

type PublishResponse

type PublishResponse struct {
	// contains filtered or unexported fields
}

type RegisterResponse

type RegisterResponse struct {
	UserID int64  `json:"user_id"`
	Token  string `json:"token"`
	// contains filtered or unexported fields
}

type RelationResponse

type RelationResponse struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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