unit_place.go 1.1 KB

123456789101112131415161718192021222324
  1. package autocode
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
  4. "github.com/flipped-aurora/gin-vue-admin/server/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. type UnitPlaceRouter struct {
  8. }
  9. // InitUnitPlaceRouter 初始化 UnitPlace 路由信息
  10. func (s *UnitPlaceRouter) InitUnitPlaceRouter(Router *gin.RouterGroup) {
  11. unitPlaceRouter := Router.Group("unitPlace").Use(middleware.OperationRecord())
  12. var unitPlaceApi = v1.ApiGroupApp.AutoCodeApiGroup.UnitPlaceApi
  13. {
  14. unitPlaceRouter.POST("createUnitPlace", unitPlaceApi.CreateUnitPlace) // 新建UnitPlace
  15. unitPlaceRouter.DELETE("deleteUnitPlace", unitPlaceApi.DeleteUnitPlace) // 删除UnitPlace
  16. unitPlaceRouter.DELETE("deleteUnitPlaceByIds", unitPlaceApi.DeleteUnitPlaceByIds) // 批量删除UnitPlace
  17. unitPlaceRouter.PUT("updateUnitPlace", unitPlaceApi.UpdateUnitPlace) // 更新UnitPlace
  18. unitPlaceRouter.GET("findUnitPlace", unitPlaceApi.FindUnitPlace) // 根据ID获取UnitPlace
  19. unitPlaceRouter.GET("getUnitPlaceList", unitPlaceApi.GetUnitPlaceList) // 获取UnitPlace列表
  20. }
  21. }