17 lines
471 B
Go
17 lines
471 B
Go
package modules
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"schisandra-cloud-album/api"
|
|
)
|
|
|
|
var commonApi = api.Api.CommonApi
|
|
|
|
func CommentRouter(router *gin.RouterGroup) {
|
|
router.POST("/auth/comment/submit", commonApi.CommentSubmit)
|
|
router.POST("/auth/reply/submit", commonApi.ReplySubmit)
|
|
router.POST("/auth/comment/list", commonApi.CommentList)
|
|
router.POST("/auth/reply/list", commonApi.ReplyList)
|
|
router.POST("/auth/reply/reply/submit", commonApi.ReplyReplySubmit)
|
|
}
|