Documentation ¶
Index ¶
- Constants
- type SCheckin
- type SComment
- type SHome
- type SLike
- type SNode
- type SNotice
- type SRemind
- type SReport
- type SSearch
- type STopic
- func (s *STopic) Delete(ID uint64) error
- func (s *STopic) Edit(ID uint64, req *fe.PublishTopicReq) (uint64, error)
- func (s *STopic) GetDetail(topicId uint64) (*fe.Topic, error)
- func (s *STopic) GetList(req *fe.GetTopicListReq) (gin.H, error)
- func (s *STopic) ParseBrief(html string) (string, error)
- func (s *STopic) ParseHtmlImages(html string) ([]string, error)
- func (s *STopic) Publish(req *fe.PublishTopicReq) (uint64, error)
- func (s *STopic) SettingCommentState(ID uint64) error
- type SUser
- func (s *SUser) Edit(req *fe.EditUserReq) error
- func (s *SUser) EditAvatar(ctx *gin.Context) error
- func (s *SUser) EditPassword(req *fe.EditPasswordReq) error
- func (s *SUser) Follow(req *fe.FollowUserReq) (int, error)
- func (s *SUser) Home(req *fe.GetUserHomeReq) (gin.H, error)
- func (s *SUser) Login(req *fe.LoginReq) error
- func (s *SUser) Logout()
- func (s *SUser) Register(req *fe.RegisterReq) error
Constants ¶
View Source
const MaxTagLen = 15 // 单个标签最大长度
View Source
const MaxTagsLen = 3 // 标签最大长度
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SCheckin ¶
type SCheckin struct {
// contains filtered or unexported fields
}
func CheckinService ¶
type SComment ¶
type SComment struct {
// contains filtered or unexported fields
}
func CommentService ¶
type SLike ¶
type SLike struct {
// contains filtered or unexported fields
}
func LikeService ¶
type SNotice ¶
type SNotice struct {
// contains filtered or unexported fields
}
func NoticeService ¶
func (*SNotice) GetLetterUnread ¶
GetLetterUnread 获取私信未读数
func (*SNotice) GetRemindUnread ¶
GetRemindUnread 获取提醒未读消息
func (*SNotice) GetSystemUnread ¶
GetSystemUnread 获取系统未读数
type SRemind ¶
type SRemind struct {
// contains filtered or unexported fields
}
func RemindService ¶
type SReport ¶
type SReport struct {
// contains filtered or unexported fields
}
func ReportService ¶
type SSearch ¶
type SSearch struct {
// contains filtered or unexported fields
}
func SearchService ¶
type STopic ¶
type STopic struct {
// contains filtered or unexported fields
}
func TopicService ¶
func (*STopic) ParseBrief ¶
ParseBrief parse topic brief
func (*STopic) ParseHtmlImages ¶
ParseHtmlImages parse topic images
func (*STopic) Publish ¶
func (s *STopic) Publish(req *fe.PublishTopicReq) (uint64, error)
Publish 发布话题
func (*STopic) SettingCommentState ¶
SettingCommentState 设置话题讨论状态
type SUser ¶
type SUser struct {
// contains filtered or unexported fields
}
func UserService ¶
func (*SUser) EditPassword ¶
func (s *SUser) EditPassword(req *fe.EditPasswordReq) error
EditPassword 修改密码
Click to show internal directories.
Click to hide internal directories.