feat:增加用户资产和会员状态
This commit is contained in:
15
app/api/enterprise/api/home.go
Normal file
15
app/api/enterprise/api/home.go
Normal file
@ -0,0 +1,15 @@
|
||||
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) {
|
||||
data, err := home.NewInstance()(api.GetSession()(c).(*session.Enterprise), api.GetLocal()(c).(string)).Instance()
|
||||
api.APIResponse(err, data)
|
||||
}
|
Reference in New Issue
Block a user