PersonalMain-Golang/internal/service/LinkService/linkService.go
2023-12-29 16:37:44 +08:00

20 lines
527 B
Go

package LinkService
import (
"PersonalMain/internal/logic/LinkServiceImpl"
"PersonalMain/internal/model/do"
"PersonalMain/internal/model/entity"
"github.com/gogf/gf/v2/net/ghttp"
)
func NewLinkService() LinkService {
return &LinkServiceImpl.DefaultLinkImpl{}
}
type LinkService interface {
GetLinkFriend(*ghttp.Request)
GetSortAndLink(*ghttp.Request)
AddLinkFriendCustom(*ghttp.Request, entity.LinkAddFriendVO) (bool, *do.BlogDO, string)
DelLinkFriendCustom(*ghttp.Request, entity.LinkDelFriendVO) (bool, string)
}