Certificate.go 1.4 KB

123456789101112131415161718192021
  1. package routers
  2. import (
  3. "ColdVerify_server/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. // - 校准证书
  8. beego.Router("/Certificate/List", &controllers.CertificateController{}, "*:List") // 校准证书列表
  9. beego.Router("/Certificate/Get", &controllers.CertificateController{}, "*:Get") // 获取最新校准证书
  10. beego.Router("/Certificate/Add", &controllers.CertificateController{}, "*:Add") // 添加校准证书
  11. beego.Router("/Certificate/Edit", &controllers.CertificateController{}, "*:Edit") // 编辑校准证书
  12. beego.Router("/Certificate/Del", &controllers.CertificateController{}, "*:Del") // 删除校准证书
  13. beego.Router("/Certificate/ListWithoutDeviceList", &controllers.CertificateController{}, "*:ListWithoutDeviceList") // 校准证书除开设备列表
  14. // - 校准证书pdf
  15. beego.Router("/Certificate/Pdf_List", &controllers.CertificateController{}, "*:Pdf_List") // 校准证书pdf列表
  16. beego.Router("/Certificate/Pdf_Add", &controllers.CertificateController{}, "*:Pdf_Add") // 添加校准证书pdf
  17. beego.Router("/Certificate/Pdf_Up", &controllers.CertificateController{}, "*:Pdf_Up") // 编辑校准证书pdf
  18. beego.Router("/Certificate/Pdf_Del", &controllers.CertificateController{}, "*:Pdf_Del") // 删除校准证书pdf
  19. }