mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 10:13:01 +00:00
16 lines
193 B
Go
16 lines
193 B
Go
package apis
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"gorm.io/gorm"
|
|
|
|
"go-admin/tools"
|
|
)
|
|
|
|
type Api struct {
|
|
}
|
|
|
|
func (e *Api) GetOrm(c *gin.Context) (*gorm.DB, error) {
|
|
return tools.GetOrm(c)
|
|
}
|