pack

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comment

func Comment(data *interaction.Comment) *api.Comment

func CommentList

func CommentList(list []*interaction.Comment) []*api.Comment

func FriendList

func FriendList(list []*follow.FriendUser) []*api.FriendUser

func MessageList

func MessageList(list []*chat.Message) []*api.Message

func SendFailResponse

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

func SendResponse

func SendResponse(c *app.RequestContext, data interface{})

func User

func User(data *user.User) *api.User

func UserList

func UserList(list []*follow.User) []*api.User

serve for follow list

func VideoList

func VideoList(list []*video.Video) []*api.Video

func VideoListFavorited

func VideoListFavorited(list []*interaction.Video) []*api.Video

Types

type Response

type Response struct {
	Code int64  `json:"status_code"`
	Msg  string `json:"status_msg"`
}

Jump to

Keyboard shortcuts

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