You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1 KiB

3 years ago
  1. package system
  2. import (
  3. "gin-vue-admin/api/v1"
  4. "gin-vue-admin/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. type OperationRecordRouter struct {
  8. }
  9. func (s *OperationRecordRouter) InitSysOperationRecordRouter(Router *gin.RouterGroup) {
  10. operationRecordRouter := Router.Group("sysOperationRecord").Use(middleware.OperationRecord())
  11. var authorityMenuApi = v1.ApiGroupApp.SystemApiGroup.OperationRecordApi
  12. {
  13. operationRecordRouter.POST("createSysOperationRecord", authorityMenuApi.CreateSysOperationRecord) // 新建SysOperationRecord
  14. operationRecordRouter.DELETE("deleteSysOperationRecord", authorityMenuApi.DeleteSysOperationRecord) // 删除SysOperationRecord
  15. operationRecordRouter.DELETE("deleteSysOperationRecordByIds", authorityMenuApi.DeleteSysOperationRecordByIds) // 批量删除SysOperationRecord
  16. operationRecordRouter.GET("findSysOperationRecord", authorityMenuApi.FindSysOperationRecord) // 根据ID获取SysOperationRecord
  17. operationRecordRouter.GET("getSysOperationRecordList", authorityMenuApi.GetSysOperationRecordList) // 获取SysOperationRecord列表
  18. }
  19. }