|
@@ -14,11 +14,12 @@ func (s *UnitRouter) InitUnitRouter(Router *gin.RouterGroup) {
|
|
|
unitRouter := Router.Group("unit").Use(middleware.OperationRecord())
|
|
|
var unitApi = v1.ApiGroupApp.AutoCodeApiGroup.UnitApi
|
|
|
{
|
|
|
- unitRouter.POST("createUnit", unitApi.CreateUnit) // 新建Unit
|
|
|
- unitRouter.DELETE("deleteUnit", unitApi.DeleteUnit) // 删除Unit
|
|
|
- unitRouter.DELETE("deleteUnitByIds", unitApi.DeleteUnitByIds) // 批量删除Unit
|
|
|
- unitRouter.PUT("updateUnit", unitApi.UpdateUnit) // 更新Unit
|
|
|
- unitRouter.GET("findUnit", unitApi.FindUnit) // 根据ID获取Unit
|
|
|
- unitRouter.GET("getUnitList", unitApi.GetUnitList) // 获取Unit列表
|
|
|
+ unitRouter.POST("createUnit", unitApi.CreateUnit) // 新建Unit
|
|
|
+ unitRouter.DELETE("deleteUnit", unitApi.DeleteUnit) // 删除Unit
|
|
|
+ unitRouter.DELETE("deleteUnitByIds", unitApi.DeleteUnitByIds) // 批量删除Unit
|
|
|
+ unitRouter.PUT("updateUnit", unitApi.UpdateUnit) // 更新Unit
|
|
|
+ unitRouter.GET("findUnit", unitApi.FindUnit) // 根据ID获取Unit
|
|
|
+ unitRouter.GET("updateUnitIntergral", unitApi.UpdateUnitIntergral) // jifen
|
|
|
+ unitRouter.GET("getUnitList", unitApi.GetUnitList) // 获取Unit列表
|
|
|
}
|
|
|
}
|