Certificate.go 1.1 KB

1234567891011121314151617181920
  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. // - 校准证书pdf
  14. beego.Router("/Certificate/Pdf_List", &controllers.CertificateController{}, "*:Pdf_List") // 校准证书pdf列表
  15. beego.Router("/Certificate/Pdf_Add", &controllers.CertificateController{}, "*:Pdf_Add") // 添加校准证书pdf
  16. beego.Router("/Certificate/Pdf_Up", &controllers.CertificateController{}, "*:Pdf_Up") // 编辑校准证书pdf
  17. beego.Router("/Certificate/Pdf_Del", &controllers.CertificateController{}, "*:Pdf_Del") // 删除校准证书pdf
  18. }