gin-blog/internal/routess/api/v1/article.go

22 lines
434 B
Go
Raw Normal View History

2021-05-28 10:40:39 +00:00
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) {}