api

package
v0.0.0-...-98b475a Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct{}

func NewBase

func NewBase() Base

func (Base) Callback

func (Base) Callback(c *gin.Context)

Callback 处理 GitHub 回调

func (Base) GetAvatar

func (Base) GetAvatar(c *gin.Context)

func (Base) GetBlogImg

func (Base) GetBlogImg(c *gin.Context)

func (Base) GetGroupAvatar

func (Base) GetGroupAvatar(c *gin.Context)

func (Base) GetRegisterCode

func (Base) GetRegisterCode(c *gin.Context)

func (Base) GetTodolistImg

func (Base) GetTodolistImg(c *gin.Context)

func (Base) GetVerificationCode

func (Base) GetVerificationCode(c *gin.Context)

func (Base) LoginByCode

func (Base) LoginByCode(c *gin.Context)

func (Base) LoginByGithub

func (Base) LoginByGithub(c *gin.Context)

LoginByGithub 跳转到 GitHub 授权页面

func (Base) LoginByPassword

func (Base) LoginByPassword(c *gin.Context)

func (Base) Register

func (Base) Register(c *gin.Context)

func (Base) VerifyToken

func (Base) VerifyToken(c *gin.Context)

type Blog

type Blog struct{}

func NewBlog

func NewBlog() Blog

func (Blog) Add

func (Blog) Add(c *gin.Context)

func (Blog) AddView

func (Blog) AddView(c *gin.Context)

func (Blog) CancelFavorite

func (Blog) CancelFavorite(c *gin.Context)

func (Blog) CancelLike

func (Blog) CancelLike(c *gin.Context)

func (Blog) Delete

func (Blog) Delete(c *gin.Context)

func (Blog) Edit

func (Blog) Edit(c *gin.Context)

func (Blog) Favorite

func (Blog) Favorite(c *gin.Context)

func (Blog) GetById

func (Blog) GetById(c *gin.Context)

func (Blog) GetById2

func (Blog) GetById2(c *gin.Context)

func (Blog) GetFavoritePostList

func (Blog) GetFavoritePostList(c *gin.Context)

func (Blog) GetFavoritesCount

func (Blog) GetFavoritesCount(c *gin.Context)

func (Blog) GetFavoritesTotalCount

func (Blog) GetFavoritesTotalCount(c *gin.Context)

func (Blog) GetLikesCount

func (Blog) GetLikesCount(c *gin.Context)

func (Blog) GetListTotalCount

func (Blog) GetListTotalCount(c *gin.Context)

func (Blog) GetMyListTotalCount

func (Blog) GetMyListTotalCount(c *gin.Context)

func (Blog) IsFavorite

func (Blog) IsFavorite(c *gin.Context)

func (Blog) IsLike

func (Blog) IsLike(c *gin.Context)

func (Blog) Like

func (Blog) Like(c *gin.Context)

func (Blog) List

func (Blog) List(c *gin.Context)

func (Blog) MyList

func (Blog) MyList(c *gin.Context)

func (Blog) ToPrivate

func (Blog) ToPrivate(c *gin.Context)

func (Blog) ToPublic

func (Blog) ToPublic(c *gin.Context)

func (Blog) UploadImg

func (Blog) UploadImg(c *gin.Context)

type ChartData

type ChartData struct {
	Date string `json:"date"`
	Num  int    `json:"num"`
}

type Chatroom

type Chatroom struct{}

func NewChatroom

func NewChatroom() Chatroom

func (Chatroom) AddFriend

func (Chatroom) AddFriend(c *gin.Context)

func (Chatroom) AddFriendRequest

func (Chatroom) AddFriendRequest(c *gin.Context)

func (Chatroom) AddGroup

func (Chatroom) AddGroup(c *gin.Context)

func (Chatroom) BelongGroupUserList

func (Chatroom) BelongGroupUserList(c *gin.Context)

func (Chatroom) BelongUserGroupList

func (Chatroom) BelongUserGroupList(c *gin.Context)

func (Chatroom) DeleteFriend

func (Chatroom) DeleteFriend(c *gin.Context)

func (Chatroom) DeleteGroup

func (Chatroom) DeleteGroup(c *gin.Context)

func (Chatroom) DeleteMember

func (Chatroom) DeleteMember(c *gin.Context)

func (Chatroom) EnterGroup

func (Chatroom) EnterGroup(c *gin.Context)

func (Chatroom) EnterGroupRequest

func (Chatroom) EnterGroupRequest(c *gin.Context)

func (Chatroom) GetFriendList

func (Chatroom) GetFriendList(c *gin.Context)

func (Chatroom) GetGroupById

func (Chatroom) GetGroupById(c *gin.Context)

func (Chatroom) GetGroupMessage

func (Chatroom) GetGroupMessage(c *gin.Context)

func (Chatroom) GetMessage

func (Chatroom) GetMessage(c *gin.Context)

func (Chatroom) GetRequestList

func (Chatroom) GetRequestList(c *gin.Context)

func (Chatroom) HandleRequest

func (Chatroom) HandleRequest(c *gin.Context)

func (Chatroom) IsFriend

func (Chatroom) IsFriend(c *gin.Context)

func (Chatroom) IsGroupExist

func (Chatroom) IsGroupExist(c *gin.Context)

func (Chatroom) IsInGroup

func (Chatroom) IsInGroup(c *gin.Context)

func (Chatroom) IsOnline

func (Chatroom) IsOnline(c *gin.Context)

func (Chatroom) ModifyGroupName

func (Chatroom) ModifyGroupName(c *gin.Context)

func (Chatroom) SendGroupMessage

func (Chatroom) SendGroupMessage(c *gin.Context)

func (Chatroom) SendMessage

func (Chatroom) SendMessage(c *gin.Context)

func (Chatroom) UploadAvatar

func (Chatroom) UploadAvatar(c *gin.Context)

type DailyData

type DailyData struct {
	Num  int    `json:"num"`
	Rate string `json:"rate"`
	Res  string `json:"res"`
}

type DeleteDTO

type DeleteDTO struct {
	Id string `json:"id"`
}

type Game

type Game struct{}

func NewGame

func NewGame() Game

func (Game) LD

func (Game) LD(c *gin.Context)

type IdDTO

type IdDTO struct {
	Id string `json:"id"`
}

type ListDTO

type ListDTO struct {
	Date string `json:"date"`
}

type Music

type Music struct{}

func NewMusic

func NewMusic() Music

func (Music) CancelFavorite

func (Music) CancelFavorite(c *gin.Context)

func (Music) Favorite

func (Music) Favorite(c *gin.Context)

func (Music) FavoriteList

func (Music) FavoriteList(c *gin.Context)

func (Music) List

func (Music) List(c *gin.Context)

func (Music) ListByFavorite

func (Music) ListByFavorite(c *gin.Context)

type Page

type Page struct {
	CurrentPage int `json:"currentPage"`
}

type RequestTemp

type RequestTemp struct {
	Id     string `json:"id"`
	Remark string `json:"remark"`
}

type SpecialGroupMessage

type SpecialGroupMessage struct {
	GroupId string `json:"groupId"`
	Count   int    `json:"count"`
}

type SpecialMessage

type SpecialMessage struct {
	SenderId   string `json:"senderId"`
	ReceiverId string `json:"receiverId"`
	Count      int    `json:"count"`
}

type Statistic

type Statistic struct{}

func NewStatistic

func NewStatistic() Statistic

func (Statistic) GetChartDauData

func (Statistic) GetChartDauData(c *gin.Context)

func (Statistic) GetChartMessageData

func (Statistic) GetChartMessageData(c *gin.Context)

func (Statistic) GetChartTodolistData

func (Statistic) GetChartTodolistData(c *gin.Context)

func (Statistic) GetDailyDauData

func (Statistic) GetDailyDauData(c *gin.Context)

func (Statistic) GetDailyMessageData

func (Statistic) GetDailyMessageData(c *gin.Context)

func (Statistic) GetDailyTodolistData

func (Statistic) GetDailyTodolistData(c *gin.Context)

type TodoList

type TodoList struct{}

func NewTodoList

func NewTodoList() TodoList

func (TodoList) Add

func (TodoList) Add(c *gin.Context)

func (TodoList) Delete

func (TodoList) Delete(c *gin.Context)

func (TodoList) Edit

func (TodoList) Edit(c *gin.Context)

func (TodoList) GetById

func (TodoList) GetById(c *gin.Context)

func (TodoList) List

func (TodoList) List(c *gin.Context)

func (TodoList) UploadImg

func (TodoList) UploadImg(c *gin.Context)

type TokenVerify

type TokenVerify struct {
	Token string `json:"token"`
}

type User

type User struct{}

func NewUser

func NewUser() User

func (User) GetById

func (User) GetById(c *gin.Context)

func (User) ModifyEmail

func (User) ModifyEmail(c *gin.Context)

func (User) ModifyPassword

func (User) ModifyPassword(c *gin.Context)

func (User) ModifyPath

func (User) ModifyPath(c *gin.Context)

func (User) ModifyUsername

func (User) ModifyUsername(c *gin.Context)

func (User) UploadAvatar

func (User) UploadAvatar(c *gin.Context)

Jump to

Keyboard shortcuts

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