login_record.go 614 B

1234567891011121314151617181920
  1. package router
  2. import (
  3. "dy-admin/internal/pcmserver/pkg/my_middleware"
  4. v1 "dy-admin/internal/pcmserver/sys/api/v1"
  5. "github.com/gin-gonic/gin"
  6. )
  7. type LoginRecordRouter struct {
  8. }
  9. func (s *LoginRecordRouter) InitLoginRecordRouter(routerGroup *gin.RouterGroup) {
  10. apiRouter := routerGroup.Group("v1/loginRecord").Use(my_middleware.OperationRecord())
  11. loginRecordRouterApi := v1.SystemApiGroup.LoginRecordApi
  12. {
  13. apiRouter.DELETE("ids", loginRecordRouterApi.DeleteLoginRecordByIds)
  14. apiRouter.GET("", loginRecordRouterApi.FindLoginRecord)
  15. apiRouter.GET("list", loginRecordRouterApi.GetLoginRecordList)
  16. }
  17. }