feat: release v1.0.0

This commit is contained in:
2026-07-29 22:10:36 +08:00
parent ee9f50b859
commit c903b5a6b5
81 changed files with 2776 additions and 1044 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/go-chi/chi/v5"
)
// SetupSysUserRoutes 8
func SetupSysUserRoutes(r chi.Router, h *handler.SysUserHandler) {
r.Get("/user", h.ListPage)
r.Get("/user/info", h.GetUserInfo)
@@ -17,6 +18,7 @@ func SetupSysUserRoutes(r chi.Router, h *handler.SysUserHandler) {
r.Delete("/user/{id}", h.Delete)
}
// SetupSysRoleRoutes 9
func SetupSysRoleRoutes(r chi.Router, h *handler.SysRoleHandler) {
r.Get("/role", h.ListPage)
r.Get("/role/{id}/menus", h.GetRoleMenus)
@@ -29,6 +31,7 @@ func SetupSysRoleRoutes(r chi.Router, h *handler.SysRoleHandler) {
r.Delete("/role/{id}", h.Delete)
}
// SetupSysMenuRoutes 5
func SetupSysMenuRoutes(r chi.Router, h *handler.SysMenuHandler) {
r.Get("/menu", h.ListPage)
r.Get("/menu/all", h.GetMenus)
@@ -37,6 +40,7 @@ func SetupSysMenuRoutes(r chi.Router, h *handler.SysMenuHandler) {
r.Delete("/menu/{id}", h.Delete)
}
// SetupSysApiRoutes 6
func SetupSysApiRoutes(r chi.Router, h *handler.SysApiHandler) {
r.Get("/api", h.ListPage)
r.Get("/api/all", h.GetAllSysApis)
@@ -46,11 +50,13 @@ func SetupSysApiRoutes(r chi.Router, h *handler.SysApiHandler) {
r.Delete("/api/{id}", h.Delete)
}
// SetupSysFileRoutes 2
func SetupSysFileRoutes(r chi.Router, h *handler.SysFileHandler) {
r.Get("/file", h.ListPage)
r.Post("/file", h.Upload)
}
// SetupSysPostRoutes 5
func SetupSysPostRoutes(r chi.Router, h *handler.SysPostHandler) {
r.Get("/post", h.ListPage)
r.Get("/post/{id}", h.GetPostById)
@@ -59,6 +65,7 @@ func SetupSysPostRoutes(r chi.Router, h *handler.SysPostHandler) {
r.Delete("/post/{id}", h.Delete)
}
// SetupCategoryRoutes 5
func SetupCategoryRoutes(r chi.Router, h *handler.CategoryHandler) {
r.Get("/category", h.ListPage)
r.Get("/category/all", h.ListAll)
@@ -66,3 +73,12 @@ func SetupCategoryRoutes(r chi.Router, h *handler.CategoryHandler) {
r.Patch("/category/{id}", h.Update)
r.Delete("/category/{id}", h.Delete)
}
// SetupTagRoutes 5
func SetupTagRoutes(r chi.Router, h *handler.TagHandler) {
r.Get("/tag", h.ListPage)
r.Get("/tag/all", h.ListAll)
r.Post("/tag", h.Create)
r.Patch("/tag/{id}", h.Update)
r.Delete("/tag/{id}", h.Delete)
}