ginblog

command module
v0.0.0-...-f18df89 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 2 Imported by: 0

README

使用方式

请求方式

url/api/v1/interface

管理接口

auth.PUT("user/:id", v1.EditUser)

auth.DELETE("user/:id", v1.DeleteUser)

auth.POST("category/add", v1.AddCategory)

auth.PUT("category/:id", v1.EditCategory)

auth.DELETE("category/:id", v1.DeleteCategory)

auth.POST("article/add", v1.AddArticle)

auth.PUT("article/:id", v1.EditArticle)

auth.DELETE("article/:id", v1.DeleteArticle)

auth.POST("upload", v1.Upload)

常规接口

router.POST("user/add", v1.AddUser)

router.GET("users", v1.GetUsers)

router.GET("categories", v1.GetCategories)

router.GET("articles", v1.GetArticles)

router.GET("article/category/:id", v1.GetCateArt)

router.GET("article/info/:id", v1.GetArticle)

router.POST("login", v1.Login)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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