You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
512 B

package content
// controller
import (
"github.com/gin-gonic/gin"
"net/http"
)
// action
func Get(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{
"id": ctx.Param("id"),
"message": "内容查询",
})
}
func Post(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{
"message": "内容添加",
})
}
func Delete(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{
"message": "内容删除",
})
}
func Put(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{
"message": "内容更新",
})
}