智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hdl_demo.go 370 B

1 vuosi sitten
12345678910111213141516171819
  1. package hdl
  2. import (
  3. "applet/app/db"
  4. "applet/app/e"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // Demo 测试
  8. func Demo(c *gin.Context) {
  9. qrcodeWithBatchRecordsDb := db.AdminDb{}
  10. qrcodeWithBatchRecordsDb.Set()
  11. data, _, err := qrcodeWithBatchRecordsDb.GetAdminRolePermission(1001)
  12. if err != nil {
  13. e.OutErr(c, e.ERR_DB_ORM, err.Error())
  14. return
  15. }
  16. e.OutSuc(c, data, nil)
  17. }