logic

package
v0.0.0-...-70261f9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiController

type ApiController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewApiController

func NewApiController(svcCtx *svc.ControllerContext) *ApiController

func (*ApiController) CreateApi

func (s *ApiController) CreateApi(c *gin.Context)

@Tags Api @Summary 创建接口 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Api true "请求body" @Success 200 {object} response.Response{data=entity.Api} "返回信息" @Router /api/create [post]

func (*ApiController) DeleteApi

func (s *ApiController) DeleteApi(c *gin.Context)

@Tags Api @Summary 删除接口 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Api true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /api/delete [delete]

func (*ApiController) DeleteApiByIds

func (s *ApiController) DeleteApiByIds(c *gin.Context)

@Tags Api @Summary 批量删除接口 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /api/deleteByIds [delete]

func (*ApiController) FindApiList

func (s *ApiController) FindApiList(c *gin.Context)

@Tags Api @Summary 分页获取接口列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Api}} "返回信息" @Router /api/list [get]

func (*ApiController) GetApi

func (s *ApiController) GetApi(c *gin.Context)

@Tags Api @Summary 查询接口 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Api true "请求body" @Success 200 {object} response.Response{data=entity.Api} "返回信息" @Router /api/query [get]

func (*ApiController) GetApiTreeList

func (s *ApiController) GetApiTreeList(c *gin.Context)

@Tags Api @Summary 获取api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Api true "创建api路由" @Success 200 {object} response.Response{data=entity.Api} "返回信息" @Router /admin/apis [post]

func (*ApiController) UpdateApi

func (s *ApiController) UpdateApi(c *gin.Context)

@Tags Api @Summary 更新接口 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Api true "请求body" @Success 200 {object} response.Response{data=entity.Api} "返回信息" @Router /api/update [put]

type ArticleController

type ArticleController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewArticleController

func NewArticleController(svcCtx *svc.ControllerContext) *ArticleController

func (*ArticleController) CreateArticle

func (s *ArticleController) CreateArticle(c *gin.Context)

CreateArticle 创建文章 @Tags ArticleDTO @Summary 创建文章 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Article true "创建文章" @Success 200 {object} response.Response{data=entity.Article} "返回信息" @Router /article/create [post]

func (*ArticleController) DeleteArticle

func (s *ArticleController) DeleteArticle(c *gin.Context)

DeleteArticle 删除文章 @Tags ArticleDTO @Summary 删除文章 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Article true "删除文章" @Success 200 {object} response.Response{} "返回信息" @Router /article/delete [delete]

func (*ArticleController) DeleteArticleByIds

func (s *ArticleController) DeleteArticleByIds(c *gin.Context)

DeleteArticleByIds 批量删除文章 @Tags ArticleDTO @Summary 批量删除文章 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "批量删除文章" @Success 200 {object} response.Response{} "返回信息" @Router /article/deleteByIds [delete]

func (*ArticleController) FindArticle

func (s *ArticleController) FindArticle(c *gin.Context)

FindArticle 用id查询文章 @Tags ArticleDTO @Summary 用id查询文章 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Article true "用id查询文章" @Success 200 {object} response.Response{data=entity.Article} "返回信息" @Router /article/find [post]

func (*ArticleController) GetArticleArchives

func (s *ArticleController) GetArticleArchives(c *gin.Context)

@Tags ArticleDTO @Summary 文章归档 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Article true "创建文章" @Success 200 {object} response.Response{data=entity.Article} "返回信息" @Router /article/archives [get]

func (*ArticleController) GetArticleList

func (s *ArticleController) GetArticleList(c *gin.Context)

GetArticleList 分页获取文章列表 @Tags ArticleDTO @Summary 分页获取文章列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页获取文章列表" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Article}} "返回信息" @Router /article/list [post]

func (*ArticleController) GetArticleListByCondition

func (s *ArticleController) GetArticleListByCondition(c *gin.Context)

GetArticleList 分页获取文章列表 @Tags ArticleDTO @Summary 分页获取文章列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页获取文章列表" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Article}} "返回信息" @Router /article/condition [post]

func (*ArticleController) LikeArticle

func (s *ArticleController) LikeArticle(c *gin.Context)

@Tags ArticleDTO @Summary 更新文章 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Article true "更新文章" @Success 200 {object} response.Response{data=entity.Article} "返回信息" @Router /article/like [put]

func (*ArticleController) UpdateArticle

func (s *ArticleController) UpdateArticle(c *gin.Context)

UpdateArticle 更新文章 @Tags ArticleDTO @Summary 更新文章 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Article true "更新文章" @Success 200 {object} response.Response{data=entity.Article} "返回信息" @Router /article/update [put]

type AuthController

type AuthController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewAuthController

func NewAuthController(svcCtx *svc.ControllerContext) *AuthController

func (*AuthController) ForgetPasswordEmail

func (s *AuthController) ForgetPasswordEmail(c *gin.Context)

@Tags Auth @Summary 发送忘记密码邮件 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Auth true "创建权限认证" @Success 200 {object} response.Response{data=entity.Auth} "返回信息" @Router /user/password/forget [post]

func (*AuthController) GetAuthorizeUrl

func (s *AuthController) GetAuthorizeUrl(c *gin.Context)

@Tags Auth @Summary 获取授权地址 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.OauthLoginReq true "请求body信息" @Success 200 {object} response.Response{data=response.OauthLoginUrl} "返回信息" @Router /user/oauth/url [post]

func (*AuthController) Login

func (s *AuthController) Login(c *gin.Context)

Login @Tags Auth @Summary 登录 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Auth true "创建权限认证" @Success 200 {object} response.Response{data=entity.Auth} "返回信息" @Router /user/login [post]

func (*AuthController) Logoff

func (s *AuthController) Logoff(c *gin.Context)

@Tags Auth @Summary 注销 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Auth true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /user/logoff [post]

func (*AuthController) Logout

func (s *AuthController) Logout(c *gin.Context)

Logout @Tags Auth @Summary 登出 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Auth true "创建权限认证" @Success 200 {object} response.Response{data=entity.Auth} "返回信息" @Router /user/logout [get]

func (*AuthController) OauthLogin

func (s *AuthController) OauthLogin(c *gin.Context)

@Tags Auth @Summary 获取授权地址 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.OauthLoginReq true "请求body信息" @Success 200 {object} response.Response{data=response.OauthLoginUrl} "返回信息" @Router /user/oauth/login [post]

func (*AuthController) Register

func (s *AuthController) Register(c *gin.Context)

@Tags Auth @Summary 注册 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Auth true "删除权限认证" @Success 200 {object} response.Response{} "返回信息" @Router /user/register [post]

func (*AuthController) RegisterEmail

func (s *AuthController) RegisterEmail(c *gin.Context)

Register @Tags Auth @Summary 发送注册邮件 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Auth true "删除权限认证" @Success 200 {object} response.Response{} "返回信息" @Router /user/register/email [post]

func (*AuthController) ResetPassword

func (s *AuthController) ResetPassword(c *gin.Context)

@Tags Auth @Summary 重置密码 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Auth true "创建权限认证" @Success 200 {object} response.Response{data=entity.Auth} "返回信息" @Router /user/password/reset [post]

type BlogController

type BlogController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewBlogController

func NewBlogController(svcCtx *svc.ControllerContext) *BlogController

func (*BlogController) ApiVersion

func (s *BlogController) ApiVersion(c *gin.Context)

CreateApi 创建api路由 https://www.jianshu.com/p/4bb4283632e4 @Tags 标签 @Summary 标题 @Description 描述,可以有多个 @Security ApiKeyAuth @Param file formData file true "上传文件" @Param id path int true "id" @Param token header string true "token" @Param data body entity.Api true "创建api路由" @Success 200 {object} response.Response{data=entity.Api} "返回信息" @Router /api/version [get]

func (*BlogController) GetAboutMe

func (s *BlogController) GetAboutMe(c *gin.Context)

CreateApi 创建api路由 @Tags Api @Summary 创建api路由 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Api true "创建api路由" @Success 200 {object} response.Response{data=entity.Api} "返回信息" @Router /about [get]

type CaptchaController

type CaptchaController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewCaptchaController

func NewCaptchaController(svcCtx *svc.ControllerContext) *CaptchaController

func (*CaptchaController) GetCaptchaImage

func (s *CaptchaController) GetCaptchaImage(c *gin.Context)

@Tags Captcha @Summary 生成验证码 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{} "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码" @Router /captcha/image [post]

func (*CaptchaController) SendCaptchaEmail

func (s *CaptchaController) SendCaptchaEmail(c *gin.Context)

@Summary 发送验证码 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.CaptchaEmail true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /captcha/email [post]

func (*CaptchaController) VerifyCaptcha

func (s *CaptchaController) VerifyCaptcha(c *gin.Context)

@Tags Captcha @Summary 检验验证码 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{} "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码" @Router /captcha/verify [post]

type CategoryController

type CategoryController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewCategoryController

func NewCategoryController(svcCtx *svc.ControllerContext) *CategoryController

func (*CategoryController) CreateCategory

func (s *CategoryController) CreateCategory(c *gin.Context)

CreateCategory 创建文章分类 @Tags Category @Summary 创建文章分类 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Category true "创建文章分类" @Success 200 {object} response.Response{data=entity.Category} "返回信息" @Router /category/create [post]

func (*CategoryController) DeleteCategory

func (s *CategoryController) DeleteCategory(c *gin.Context)

DeleteCategory 删除文章分类 @Tags Category @Summary 删除文章分类 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Category true "删除文章分类" @Success 200 {object} response.Response{} "返回信息" @Router /category/delete [delete]

func (*CategoryController) DeleteCategoryByIds

func (s *CategoryController) DeleteCategoryByIds(c *gin.Context)

DeleteCategoryByIds 批量删除文章分类 @Tags Category @Summary 批量删除文章分类 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "批量删除文章分类" @Success 200 {object} response.Response{} "返回信息" @Router /category/deleteByIds [delete]

func (*CategoryController) FindCategory

func (s *CategoryController) FindCategory(c *gin.Context)

FindCategory 用id查询文章分类 @Tags Category @Summary 用id查询文章分类 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Category true "用id查询文章分类" @Success 200 {object} response.Response{data=entity.Category} "返回信息" @Router /category/find [get]

func (*CategoryController) GetCategoryList

func (s *CategoryController) GetCategoryList(c *gin.Context)

GetCategoryList 分页获取文章分类列表 @Tags Category @Summary 分页获取文章分类列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页获取文章分类列表" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Category}} "返回信息" @Router /category/list [get]

func (*CategoryController) UpdateCategory

func (s *CategoryController) UpdateCategory(c *gin.Context)

UpdateCategory 更新文章分类 @Tags Category @Summary 更新文章分类 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Category true "更新文章分类" @Success 200 {object} response.Response{data=entity.Category} "返回信息" @Router /category/update [put]

type CommentController

type CommentController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewCommentController

func NewCommentController(ctx *svc.ControllerContext) *CommentController

func (*CommentController) CreateComment

func (s *CommentController) CreateComment(c *gin.Context)

@Tags Comment @Summary 创建评论 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Comment true "请求body" @Success 200 {object} response.Response{data=entity.Comment} "返回信息" @Router /comment/create [post]

func (*CommentController) DeleteComment

func (s *CommentController) DeleteComment(c *gin.Context)

@Tags Comment @Summary 删除评论 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Comment true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /comment/delete [delete]

func (*CommentController) DeleteCommentByIds

func (s *CommentController) DeleteCommentByIds(c *gin.Context)

@Tags Comment @Summary 批量删除评论 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /comment/deleteByIds [delete]

func (*CommentController) FindCommentList

func (s *CommentController) FindCommentList(c *gin.Context)

@Tags Comment @Summary 分页获取评论列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Comment}} "返回信息" @Router /comment/list [get]

func (*CommentController) GetComment

func (s *CommentController) GetComment(c *gin.Context)

@Tags Comment @Summary 查询评论 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Comment true "请求body" @Success 200 {object} response.Response{data=entity.Comment} "返回信息" @Router /comment/query [get]

func (*CommentController) LikeComment

func (s *CommentController) LikeComment(c *gin.Context)

@Tags Comment @Summary 点赞评论 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Comment true "请求body" @Success 200 {object} response.Response{data=entity.Comment} "返回信息" @Router /comment/:id/like [post]

func (*CommentController) ReplyComment

func (s *CommentController) ReplyComment(c *gin.Context)

@Tags Comment @Summary 查询评论回复列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.PageInfo true "请求body" @Success 200 {object} response.Response{data=entity.Comment} "返回信息" @Router /comment/id:/reply_list [post]

func (*CommentController) UpdateComment

func (s *CommentController) UpdateComment(c *gin.Context)

@Tags Comment @Summary 更新评论 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Comment true "请求body" @Success 200 {object} response.Response{data=entity.Comment} "返回信息" @Router /comment/update [put]

type FriendLinkController

type FriendLinkController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewFriendLinkController

func NewFriendLinkController(ctx *svc.ControllerContext) *FriendLinkController
func (s *FriendLinkController) CreateFriendLink(c *gin.Context)

@Tags FriendLink @Summary 创建友链 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.FriendLink true "请求body" @Success 200 {object} response.Response{data=entity.FriendLink} "返回信息" @Router /friendLink/create [post]

func (s *FriendLinkController) DeleteFriendLink(c *gin.Context)

@Tags FriendLink @Summary 删除友链 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.FriendLink true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /friendLink/delete [delete]

func (*FriendLinkController) DeleteFriendLinkByIds

func (s *FriendLinkController) DeleteFriendLinkByIds(c *gin.Context)

@Tags FriendLink @Summary 批量删除友链 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /friendLink/deleteByIds [delete]

func (s *FriendLinkController) FindFriendLinkList(c *gin.Context)

@Tags FriendLink @Summary 分页获取友链列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.FriendLink}} "返回信息" @Router /friendLink/list [get]

func (s *FriendLinkController) GetFriendLink(c *gin.Context)

@Tags FriendLink @Summary 查询友链 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.FriendLink true "请求body" @Success 200 {object} response.Response{data=entity.FriendLink} "返回信息" @Router /friendLink/query [get]

func (s *FriendLinkController) UpdateFriendLink(c *gin.Context)

@Tags FriendLink @Summary 更新友链 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.FriendLink true "请求body" @Success 200 {object} response.Response{data=entity.FriendLink} "返回信息" @Router /friendLink/update [put]

type MenuController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewMenuController

func NewMenuController(svcCtx *svc.ControllerContext) *MenuController
func (s *MenuController) CreateMenu(c *gin.Context)

@Tags Menu @Summary 创建菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Menu true "请求body" @Success 200 {object} response.Response{data=entity.Menu} "返回信息" @Router /menu/create [post]

func (s *MenuController) DeleteMenu(c *gin.Context)

@Tags Menu @Summary 删除菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Menu true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /menu/delete [delete]

func (s *MenuController) DeleteMenuByIds(c *gin.Context)

@Tags Menu @Summary 批量删除菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /menu/deleteByIds [delete]

func (s *MenuController) FindMenuList(c *gin.Context)

@Tags Menu @Summary 分页获取菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Menu}} "返回信息" @Router /menu/list [get]

func (s *MenuController) GetMenu(c *gin.Context)

@Tags Menu @Summary 查询菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Menu true "请求body" @Success 200 {object} response.Response{data=entity.Menu} "返回信息" @Router /menu/query [get]

func (s *MenuController) GetMenuTreeList(c *gin.Context)

@Tags Menu @Summary 获取菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Menu true "创建菜单" @Success 200 {object} response.Response{data=entity.Menu} "返回信息" @Router /admin/menus [post]

func (s *MenuController) UpdateMenu(c *gin.Context)

@Tags Menu @Summary 更新菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Menu true "请求body" @Success 200 {object} response.Response{data=entity.Menu} "返回信息" @Router /menu/update [put]

type PageController

type PageController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewPageController

func NewPageController(svcCtx *svc.ControllerContext) *PageController

func (*PageController) CreatePage

func (s *PageController) CreatePage(c *gin.Context)

CreatePage 创建页面 @Tags Page @Summary 创建页面 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Page true "创建页面" @Success 200 {object} response.Response{data=entity.Page} "返回信息" @Router /page/create [post]

func (*PageController) DeletePage

func (s *PageController) DeletePage(c *gin.Context)

DeletePage 删除页面 @Tags Page @Summary 删除页面 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Page true "删除页面" @Success 200 {object} response.Response{} "返回信息" @Router /page/delete [delete]

func (*PageController) DeletePageByIds

func (s *PageController) DeletePageByIds(c *gin.Context)

DeletePageByIds 批量删除页面 @Tags Page @Summary 批量删除页面 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "批量删除页面" @Success 200 {object} response.Response{} "返回信息" @Router /page/deleteByIds [delete]

func (*PageController) FindPage

func (s *PageController) FindPage(c *gin.Context)

FindPage 用id查询页面 @Tags Page @Summary 用id查询页面 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Page true "用id查询页面" @Success 200 {object} response.Response{data=entity.Page} "返回信息" @Router /page/find [get]

func (*PageController) GetPageList

func (s *PageController) GetPageList(c *gin.Context)

GetPageList 分页获取页面列表 @Tags Page @Summary 分页获取页面列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页获取页面列表" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Page}} "返回信息" @Router /page/list [get]

func (*PageController) UpdatePage

func (s *PageController) UpdatePage(c *gin.Context)

UpdatePage 更新页面 @Tags Page @Summary 更新页面 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Page true "更新页面" @Success 200 {object} response.Response{data=entity.Page} "返回信息" @Router /page/update [put]

type PhotoAlbumController

type PhotoAlbumController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewPhotoAlbumController

func NewPhotoAlbumController(ctx *svc.ControllerContext) *PhotoAlbumController

func (*PhotoAlbumController) CreatePhotoAlbum

func (s *PhotoAlbumController) CreatePhotoAlbum(c *gin.Context)

@Tags PhotoAlbum @Summary 创建相册 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.PhotoAlbum true "请求body" @Success 200 {object} response.Response{data=entity.PhotoAlbum} "返回信息" @Router /photoAlbum/create [post]

func (*PhotoAlbumController) DeletePhotoAlbum

func (s *PhotoAlbumController) DeletePhotoAlbum(c *gin.Context)

@Tags PhotoAlbum @Summary 删除相册 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.PhotoAlbum true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /photoAlbum/delete [delete]

func (*PhotoAlbumController) DeletePhotoAlbumByIds

func (s *PhotoAlbumController) DeletePhotoAlbumByIds(c *gin.Context)

@Tags PhotoAlbum @Summary 批量删除相册 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /photoAlbum/deleteByIds [delete]

func (*PhotoAlbumController) FindPhotoAlbumList

func (s *PhotoAlbumController) FindPhotoAlbumList(c *gin.Context)

@Tags PhotoAlbum @Summary 分页获取相册列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.PhotoAlbum}} "返回信息" @Router /photoAlbum/list [get]

func (*PhotoAlbumController) GetPhotoAlbum

func (s *PhotoAlbumController) GetPhotoAlbum(c *gin.Context)

@Tags PhotoAlbum @Summary 查询相册 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.PhotoAlbum true "请求body" @Success 200 {object} response.Response{data=entity.PhotoAlbum} "返回信息" @Router /photoAlbum/query [get]

func (*PhotoAlbumController) UpdatePhotoAlbum

func (s *PhotoAlbumController) UpdatePhotoAlbum(c *gin.Context)

@Tags PhotoAlbum @Summary 更新相册 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.PhotoAlbum true "请求body" @Success 200 {object} response.Response{data=entity.PhotoAlbum} "返回信息" @Router /photoAlbum/update [put]

type PhotoController

type PhotoController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewPhotoController

func NewPhotoController(ctx *svc.ControllerContext) *PhotoController

func (*PhotoController) CreatePhoto

func (s *PhotoController) CreatePhoto(c *gin.Context)

@Tags Photo @Summary 创建相片 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Photo true "请求body" @Success 200 {object} response.Response{data=entity.Photo} "返回信息" @Router /photo/create [post]

func (*PhotoController) DeletePhoto

func (s *PhotoController) DeletePhoto(c *gin.Context)

@Tags Photo @Summary 删除相片 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Photo true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /photo/delete [delete]

func (*PhotoController) DeletePhotoByIds

func (s *PhotoController) DeletePhotoByIds(c *gin.Context)

@Tags Photo @Summary 批量删除相片 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /photo/deleteByIds [delete]

func (*PhotoController) FindPhotoList

func (s *PhotoController) FindPhotoList(c *gin.Context)

@Tags Photo @Summary 分页获取相片列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Photo}} "返回信息" @Router /photo/list [get]

func (*PhotoController) GetPhoto

func (s *PhotoController) GetPhoto(c *gin.Context)

@Tags Photo @Summary 查询相片 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Photo true "请求body" @Success 200 {object} response.Response{data=entity.Photo} "返回信息" @Router /photo/query [get]

func (*PhotoController) UpdatePhoto

func (s *PhotoController) UpdatePhoto(c *gin.Context)

@Tags Photo @Summary 更新相片 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Photo true "请求body" @Success 200 {object} response.Response{data=entity.Photo} "返回信息" @Router /photo/update [put]

type RBACController

type RBACController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewRBACController

func NewRBACController(svcCtx *svc.ControllerContext) *RBACController

type RoleController

type RoleController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewRoleController

func NewRoleController(svcCtx *svc.ControllerContext) *RoleController

func (*RoleController) CreateRole

func (s *RoleController) CreateRole(c *gin.Context)

@Tags Role @Summary 创建角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Role true "请求body" @Success 200 {object} response.Response{data=entity.Role} "返回信息" @Router /role/create [post]

func (*RoleController) DeleteRole

func (s *RoleController) DeleteRole(c *gin.Context)

@Tags Role @Summary 删除角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Role true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /role/delete [delete]

func (*RoleController) DeleteRoleByIds

func (s *RoleController) DeleteRoleByIds(c *gin.Context)

@Tags Role @Summary 批量删除角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /role/deleteByIds [delete]

func (*RoleController) FindRoleList

func (s *RoleController) FindRoleList(c *gin.Context)

@Tags Role @Summary 分页获取角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Role}} "返回信息" @Router /role/list [get]

func (*RoleController) GetRole

func (s *RoleController) GetRole(c *gin.Context)

@Tags Role @Summary 查询角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Role true "请求body" @Success 200 {object} response.Response{data=entity.Role} "返回信息" @Router /role/query [get]

func (*RoleController) GetRoleTreeList

func (s *RoleController) GetRoleTreeList(c *gin.Context)

@Tags Role @Summary 获取角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Role true "创建角色" @Success 200 {object} response.Response{data=entity.Role} "返回信息" @Router /admin/roles [post]

func (*RoleController) UpdateRole

func (s *RoleController) UpdateRole(c *gin.Context)

@Tags Role @Summary 更新角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Role true "请求body" @Success 200 {object} response.Response{data=entity.Role} "返回信息" @Router /role/update [put]

func (*RoleController) UpdateRoleMenus

func (s *RoleController) UpdateRoleMenus(c *gin.Context)

@Tags Role @Summary 更新角色菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Role true "创建角色" @Success 200 {object} response.Response{data=entity.Role} "返回信息" @Router /admin/role/update_menus [post]

func (*RoleController) UpdateRoleResources

func (s *RoleController) UpdateRoleResources(c *gin.Context)

@Tags Role @Summary 更新角色资源 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Role true "创建角色" @Success 200 {object} response.Response{data=entity.Role} "返回信息" @Router /admin/role/update_resources [post]

type TagController

type TagController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewTagController

func NewTagController(svcCtx *svc.ControllerContext) *TagController

func (*TagController) CreateTag

func (s *TagController) CreateTag(c *gin.Context)

CreateTag 创建文章标签 @Tags Tag @Summary 创建文章标签 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Tag true "创建文章标签" @Success 200 {object} response.Response{data=entity.Tag} "返回信息" @Router /tag/create [post]

func (*TagController) DeleteTag

func (s *TagController) DeleteTag(c *gin.Context)

DeleteTag 删除文章标签 @Tags Tag @Summary 删除文章标签 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Tag true "删除文章标签" @Success 200 {object} response.Response{} "返回信息" @Router /tag/delete [delete]

func (*TagController) DeleteTagByIds

func (s *TagController) DeleteTagByIds(c *gin.Context)

DeleteTagByIds 批量删除文章标签 @Tags Tag @Summary 批量删除文章标签 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "批量删除文章标签" @Success 200 {object} response.Response{} "返回信息" @Router /tag/deleteByIds [delete]

func (*TagController) FindTag

func (s *TagController) FindTag(c *gin.Context)

FindTag 用id查询文章标签 @Tags Tag @Summary 用id查询文章标签 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Tag true "用id查询文章标签" @Success 200 {object} response.Response{data=entity.Tag} "返回信息" @Router /tag/find [get]

func (*TagController) GetTagList

func (s *TagController) GetTagList(c *gin.Context)

GetTagList 分页获取文章标签列表 @Tags Tag @Summary 分页获取文章标签列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页获取文章标签列表" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Tag}} "返回信息" @Router /tag/list [get]

func (*TagController) UpdateTag

func (s *TagController) UpdateTag(c *gin.Context)

UpdateTag 更新文章标签 @Tags Tag @Summary 更新文章标签 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Tag true "更新文章标签" @Success 200 {object} response.Response{data=entity.Tag} "返回信息" @Router /tag/update [put]

type TalkController

type TalkController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewTalkController

func NewTalkController(ctx *svc.ControllerContext) *TalkController

func (*TalkController) CreateTalk

func (s *TalkController) CreateTalk(c *gin.Context)

@Tags Talk @Summary 创建说说 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Talk true "请求body" @Success 200 {object} response.Response{data=entity.Talk} "返回信息" @Router /talk/create [post]

func (*TalkController) DeleteTalk

func (s *TalkController) DeleteTalk(c *gin.Context)

@Tags Talk @Summary 删除说说 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Talk true "请求body" @Success 200 {object} response.Response{} "返回信息" @Router /talk/delete [delete]

func (*TalkController) DeleteTalkByIds

func (s *TalkController) DeleteTalkByIds(c *gin.Context)

@Tags Talk @Summary 批量删除说说 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body []int true "删除id列表" @Success 200 {object} response.Response{} "返回信息" @Router /talk/deleteByIds [delete]

func (*TalkController) FindTalkList

func (s *TalkController) FindTalkList(c *gin.Context)

@Tags Talk @Summary 分页获取说说列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "分页参数" @Success 200 {object} response.Response{data=response.PageResult{list=[]entity.Talk}} "返回信息" @Router /talk/list [get]

func (*TalkController) GetTalk

func (s *TalkController) GetTalk(c *gin.Context)

@Tags Talk @Summary 查询说说 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query entity.Talk true "请求body" @Success 200 {object} response.Response{data=entity.Talk} "返回信息" @Router /talk/query [get]

func (*TalkController) UpdateTalk

func (s *TalkController) UpdateTalk(c *gin.Context)

@Tags Talk @Summary 更新说说 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Talk true "请求body" @Success 200 {object} response.Response{data=entity.Talk} "返回信息" @Router /talk/update [put]

type UploadController

type UploadController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewUploadController

func NewUploadController(svcCtx *svc.ControllerContext) *UploadController

func (*UploadController) UploadFile

func (s *UploadController) UploadFile(c *gin.Context)

@Tags Upload @Summary 文件上传 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.Upload true "请求body" @Success 200 {object} response.Response{data=entity.Upload} "返回信息" @Router /file/upload/:label [post]

type UserController

type UserController struct {
	controller.BaseController
	// contains filtered or unexported fields
}

func NewUserController

func NewUserController(svcCtx *svc.ControllerContext) *UserController

func (*UserController) GetLoginHistory

func (m *UserController) GetLoginHistory(c *gin.Context)

DeleteUser 获取用户登录历史 @Tags User @Summary 获取用户登录历史 @Security ApiKeyUser @accept application/json @Produce application/json @Param data body entity.User true "请求数据" @Success 200 {object} response.Response{} "返回信息" @Router /user/login_history [get]

func (*UserController) GetUserList

func (m *UserController) GetUserList(c *gin.Context)

DeleteUser 获取用户列表 @Tags User @Summary 获取用户列表 @Security ApiKeyUser @accept application/json @Produce application/json @Param data body entity.User true "请求数据" @Success 200 {object} response.Response{} "返回信息" @Router /admin/user/list [post]

func (*UserController) GetUserMenus

func (m *UserController) GetUserMenus(c *gin.Context)

GetUserMenus @Tags User @Summary 获取用户菜单 @Security ApiKeyUser @accept application/json @Produce application/json @Param data body entity.User true "请求数据" @Success 200 {object} response.Response{} "返回信息" @Router /user/menus [post]

func (*UserController) GetUserResources

func (m *UserController) GetUserResources(c *gin.Context)

GetUserResources @Tags User @Summary 获取用户资源 @Security ApiKeyUser @accept application/json @Produce application/json @Param data body entity.User true "请求数据" @Success 200 {object} response.Response{} "返回信息" @Router /user/apis [post]

func (*UserController) GetUserinfo

func (m *UserController) GetUserinfo(c *gin.Context)

GetUserinfo 获取用户信息 @Tags User @Summary 获取用户信息 @Security ApiKeyUser @accept application/json @Produce application/json @Param data body entity.User true "请求数据" @Success 200 {object} response.Response{} "返回信息" @Router /user/info [get]

func (*UserController) UpdateUserRoles

func (m *UserController) UpdateUserRoles(c *gin.Context)

@Tags Role @Summary 修改用户角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.UpdateUserRoles true "请求数据" @Success 200 {object} response.Response{data=entity.Role} "返回信息" @Router /admin/user/update_roles [post]

func (*UserController) UpdateUserStatus

func (m *UserController) UpdateUserStatus(c *gin.Context)

@Tags Role @Summary 修改用户状态 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body entity.UserAccount true "请求数据" @Success 200 {object} response.Response{} "返回信息" @Router /admin/user/update_status [post]

Jump to

Keyboard shortcuts

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