2021-12-10 11:34:19 +08:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"SciencesServer/app/api/enterprise/controller/home"
|
|
|
|
"SciencesServer/app/basic/api"
|
|
|
|
"SciencesServer/app/session"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Home struct{}
|
|
|
|
|
|
|
|
func (*Home) Instance(c *gin.Context) {
|
2022-01-15 16:48:49 +08:00
|
|
|
data, err := home.NewInstance()(api.GetSession()(c).(*session.Enterprise), api.GetTenantID()(c).(uint64)).Instance()
|
2021-12-10 11:34:19 +08:00
|
|
|
api.APIResponse(err, data)
|
|
|
|
}
|