|
- package hdl
-
- import (
- "applet/app/db"
- "applet/app/e"
- "github.com/gin-gonic/gin"
- )
-
- // Demo 测试
- func Demo(c *gin.Context) {
- qrcodeWithBatchRecordsDb := db.AdminDb{}
- qrcodeWithBatchRecordsDb.Set()
- data, _, err := qrcodeWithBatchRecordsDb.GetAdminRolePermission(1001)
- if err != nil {
- e.OutErr(c, e.ERR_DB_ORM, err.Error())
- return
- }
- e.OutSuc(c, data, nil)
- }
|