-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodel.go
More file actions
25 lines (22 loc) · 728 Bytes
/
model.go
File metadata and controls
25 lines (22 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package requestCore
import (
"github.com/hmmftg/requestCore/libParams"
"github.com/hmmftg/requestCore/libQuery"
"github.com/hmmftg/requestCore/libQuery/liborm"
"github.com/hmmftg/requestCore/libRequest"
"github.com/hmmftg/requestCore/response"
)
type RequestCoreModel struct {
RequestInterface libRequest.RequestInterface
QueryInterface libQuery.QueryRunnerInterface
OrmInterface liborm.OrmInterface
RespHandler response.ResponseHandler
ParamMap libParams.ParamInterface
}
type RequestCoreInterface interface {
GetDB() libQuery.QueryRunnerInterface
ORM() liborm.OrmInterface
RequestTools() libRequest.RequestInterface
Responder() response.ResponseHandler
Params() libParams.ParamInterface
}