config_sys.go 304 B

123456789101112131415161718
  1. package admin
  2. import (
  3. "app/commons/constant"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func (s *Server) SysConfig(ctx *gin.Context) {
  7. c := s.FromContext(ctx)
  8. type Request struct {
  9. }
  10. req := new(Request)
  11. if err := c.ShouldBindJSON(&req); err != nil {
  12. c.Resp(constant.ErrorParams)
  13. return
  14. }
  15. c.Resp(nil)
  16. }