res

package
v0.0.0-...-54354b8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminLoginRes

type AdminLoginRes struct {
	CommonRes
	Token string       `json:"token,omitempty"`
	Admin entity.Admin `json:"admin,omitempty"`
}

type CommonRes

type CommonRes struct {
	Code    int    `json:"status,omitempty"`
	Error   any    `json:"error,omitempty"`
	Message string `json:"message,omitempty"`
	Result  any    `json:"result,omitempty"`
}

type CreatePostRes

type CreatePostRes struct {
	CommonRes
}

type GetAllPostsRes

type GetAllPostsRes struct {
	CommonRes
	Post []*entity.Post `json:"posts,omitempty"`
}

type GetCommentsRes

type GetCommentsRes struct {
	CommonRes
	Comments []*entity.Comment `json:"comments,omitempty"`
}

type LoginRes

type LoginRes struct {
	CommonRes
	Token       string `json:"token,omitempty"`
	entity.User `json:"user,omitempty"`
}

type SignUpRes

type SignUpRes struct {
	CommonRes
	Token string `json:"token,omitempty"`
}

type UserProfileRes

type UserProfileRes struct {
	CommonRes
	Followers []*entity.User `json:"followers,omitempty"`
	Following []*entity.User `json:"following,omitempty"`
}

Jump to

Keyboard shortcuts

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