|
package router
|
|
import (
|
v1 "aps_crm/api/v1"
|
"github.com/gin-gonic/gin"
|
)
|
|
type CurrencyRouter struct{}
|
|
func (s *CurrencyRouter) InitCurrencyRouter(router *gin.RouterGroup) {
|
currencyRouter := router.Group("currency")
|
currencyApi := v1.ApiGroup.CurrencyApi
|
{
|
currencyRouter.POST("add", currencyApi.Add) // 添加$CName$
|
currencyRouter.DELETE("delete/:id", currencyApi.Delete) // 删除$CName$
|
currencyRouter.PUT("update", currencyApi.Update) // 更新$CName$
|
currencyRouter.GET("list", currencyApi.List) // 获取$CName$列表
|
}
|
}
|