unit_history.go 1.2 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 UnitHistoryRouter struct {
  8. }
  9. // InitUnitHistoryRouter 初始化 UnitHistory 路由信息
  10. func (s *UnitHistoryRouter) InitUnitHistoryRouter(Router *gin.RouterGroup) {
  11. unitHistoryRouter := Router.Group("unitHistory").Use(middleware.OperationRecord())
  12. var unitHistoryApi = v1.ApiGroupApp.AutoCodeApiGroup.UnitHistoryApi
  13. {
  14. unitHistoryRouter.POST("createUnitHistory", unitHistoryApi.CreateUnitHistory) // 新建UnitHistory
  15. unitHistoryRouter.DELETE("deleteUnitHistory", unitHistoryApi.DeleteUnitHistory) // 删除UnitHistory
  16. unitHistoryRouter.DELETE("deleteUnitHistoryByIds", unitHistoryApi.DeleteUnitHistoryByIds) // 批量删除UnitHistory
  17. unitHistoryRouter.PUT("updateUnitHistory", unitHistoryApi.UpdateUnitHistory) // 更新UnitHistory
  18. unitHistoryRouter.GET("findUnitHistory", unitHistoryApi.FindUnitHistory) // 根据ID获取UnitHistory
  19. unitHistoryRouter.GET("getUnitHistoryList", unitHistoryApi.GetUnitHistoryList) // 获取UnitHistory列表
  20. }
  21. }