Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePictureService ¶
type CreatePictureService struct { Title string `form:"title" json:"title" binding:"required,min=1,max=64"` Info string `form:"info" json:"info" binding:"max=3000"` Filename string `form:"filename" json:"filename"` CreatorID uint Permission uint `form:"permission" json:"permission" binding:"required"` }
CreatePictureService 影像创建的服务
func (*CreatePictureService) Create ¶
func (service *CreatePictureService) Create() serializer.Response
Create 创建影像
type DeletePictureService ¶
type DeletePictureService struct{}
func (*DeletePictureService) Delete ¶
func (service *DeletePictureService) Delete(pictureID string, opreatorID uint) serializer.Response
Delete 删除影像
type LikePictureService ¶
type LikePictureService struct{}
func (*LikePictureService) Like ¶
func (service *LikePictureService) Like(pictureID string, opreatorID uint) serializer.Response
Like 点赞影像
type ListPictureService ¶
ListPictureService 影像列表服务
func (*ListPictureService) List ¶
func (service *ListPictureService) List(operatorID uint) serializer.Response
List 影像列表
type PostCommentService ¶
type PostCommentService struct { TopicID uint `form:"tid" json:"tid" binding:"required"` ParentID uint `form:"pid" json:"pid"` CreatorID uint Content string `form:"content" json:"content" binding:"required"` Permission uint `form:"permission" json:"permission" binding:"required"` }
PostCommentService 评论提交的服务
func (*PostCommentService) Post ¶
func (service *PostCommentService) Post() serializer.Response
Post 提交评论
type ShowCommentService ¶
type ShowCommentService struct{}
func (*ShowCommentService) Show ¶
func (service *ShowCommentService) Show(tid string) serializer.Response
Show 根据传递过来的主题ID获取下面所有的评论
type ShowPictureService ¶
type ShowPictureService struct{}
func (*ShowPictureService) Show ¶
func (service *ShowPictureService) Show(pictureID string, opreatorID uint) serializer.Response
Show 读取影像
type UpdatePictureService ¶
type UpdatePictureService struct { Title string `form:"title" json:"title" binding:"required,min=1,max=50"` Info string `form:"info" json:"info" binding:"max=3000"` OpreatorID uint }
UpdatePictureService 影像更新的服务
func (*UpdatePictureService) Update ¶
func (service *UpdatePictureService) Update(pictureID string) serializer.Response
Update 更新影像
type UserLoginService ¶
type UserLoginService struct { UserName string `form:"user_name" json:"user_name" binding:"required,min=5,max=30"` Password string `form:"password" json:"password" binding:"required,min=8,max=40"` }
UserLoginService 管理用户登录的服务
func (*UserLoginService) Login ¶
func (service *UserLoginService) Login() (model.User, *serializer.Response)
Login 用户登录函数
type UserRegisterService ¶
type UserRegisterService struct { UserName string `form:"user_name" json:"user_name" binding:"required,min=1,max=16"` Password string `form:"password" json:"password" binding:"required,min=6,max=32"` PasswordConfirm string `form:"password_confirm" json:"password_confirm" binding:"required,min=6,max=32"` }
UserRegisterService 管理用户注册服务
func (*UserRegisterService) Register ¶
func (service *UserRegisterService) Register() serializer.Response
Register 用户注册
Click to show internal directories.
Click to hide internal directories.