RunCode.go 460 B

12345678910111213141516171819202122232425262728
  1. package controllers
  2. import (
  3. "Yunlot/RunCode/ctl"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. type RuncodeController struct {
  7. beego.Controller
  8. }
  9. func (c *RuncodeController) Languages() {
  10. ctl.LanguagesController(c.Ctx.ResponseWriter, c.Ctx.Request)
  11. }
  12. func (c *RuncodeController) Run() {
  13. ctl.RunController(c.Ctx.ResponseWriter, c.Ctx.Request)
  14. }
  15. func (c *RuncodeController) Build() {
  16. ctl.BuildController(c.Ctx.ResponseWriter, c.Ctx.Request)
  17. }