|
|
|
|
package archive
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ArchiveStruct struct{}
|
|
|
|
|
|
|
|
|
|
func (a *ArchiveStruct) InitGroupRouter(Router *gin.RouterGroup) {
|
|
|
|
|
groupCodeRouter := Router.Group("archive")
|
|
|
|
|
var authorityApi = v1.ApiGroupApp.ArchiveApi.ArchiveApiHandle
|
|
|
|
|
{
|
|
|
|
|
groupCodeRouter.POST("", authorityApi.Index)
|
|
|
|
|
groupCodeRouter.GET("", authorityApi.Index)
|
|
|
|
|
groupCodeRouter.POST("/", authorityApi.Index)
|
|
|
|
|
groupCodeRouter.GET("/", authorityApi.Index)
|
|
|
|
|
groupCodeRouter.POST("archivetypelist", authorityApi.ArchiveTypeList) //获取文档栏目列表
|
|
|
|
|
groupCodeRouter.POST("addarchivetype", authorityApi.AddArchive) //添加栏目
|
|
|
|
|
groupCodeRouter.POST("getarchiveinfo", authorityApi.GetArchiveInfo) //获取单个栏目信息
|
|
|
|
|
groupCodeRouter.POST("eitearchivestate", authorityApi.EiteArchiveState) //改变栏目状态
|
|
|
|
|
groupCodeRouter.POST("eitearchiveinfo", authorityApi.EiteArchiveInfo) //修改栏目信息
|
|
|
|
|
groupCodeRouter.POST("batcheitearchivestate", authorityApi.BatchEiteArchiveState) //批量处理栏目状态
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var arcjiveFileApi = v1.ApiGroupApp.ArchiveApi.GraphicInformation
|
|
|
|
|
{
|
|
|
|
|
groupCodeRouter.POST("archivefilelist", arcjiveFileApi.ArchiveFileList) //文章列表
|
|
|
|
|
groupCodeRouter.POST("addarchivefileinfo", arcjiveFileApi.AddArchiveFileInfo) //添加文章内容
|
|
|
|
|
groupCodeRouter.POST("getarchivefileinfo", arcjiveFileApi.GetArchiveFileInfo) //获取文章内容
|
|
|
|
|
groupCodeRouter.POST("eitearchivefileinfo", arcjiveFileApi.EiteArchiveFileInfo) //修改文章内容
|
|
|
|
|
groupCodeRouter.POST("modifyArchiveFileInfo", arcjiveFileApi.ModifyArchiveFileInfo) //修改文章内容
|
|
|
|
|
groupCodeRouter.POST("batchdeletearchivefile", arcjiveFileApi.BatchDeleteArchiveFile) //批量处理文章内容
|
|
|
|
|
|
|
|
|
|
groupCodeRouter.POST("getArchivefileattributelist", arcjiveFileApi.GetArchiveFileAttributeList) //查询文档属性
|
|
|
|
|
groupCodeRouter.POST("getdiscussfilemsg", arcjiveFileApi.GetDiscussFileMsg) //查询文档评论
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|