gin-blog/internal/routess/api/v1/article.go
2021-05-28 18:40:39 +08:00

22 lines
434 B
Go

package v1
import (
"blog/pkg/app"
"blog/pkg/errorcode"
"github.com/gin-gonic/gin"
)
type Article struct{}
func NewArticle() Article {
return Article{}
}
func (a Article) Get(c *gin.Context) {
app.NewResponse(c).ToErrorResponse(errorcode.ServerError)
}
func (a Article) List(c *gin.Context) {}
func (a Article) Create(c *gin.Context) {}
func (a Article) Update(c *gin.Context) {}
func (a Article) Delete(c *gin.Context) {}