-
Notifications
You must be signed in to change notification settings - Fork 1
/
model.go
31 lines (28 loc) · 1000 Bytes
/
model.go
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
26
27
28
29
30
31
package requestCore
import (
"github.com/hmmftg/requestCore/libCallApi"
"github.com/hmmftg/requestCore/libCrypto"
"github.com/hmmftg/requestCore/libDictionary"
"github.com/hmmftg/requestCore/libParams"
"github.com/hmmftg/requestCore/libQuery"
"github.com/hmmftg/requestCore/libRequest"
"github.com/hmmftg/requestCore/response"
)
type RequestCoreModel struct {
RequestInterface libRequest.RequestInterface
QueryInterface libQuery.QueryRunnerInterface
RemoteApiInterface libCallApi.CallApiInterface
RespHandler response.ResponseHandler
Dict libDictionary.DictionaryInterface
ParamMap libParams.ParamsInterface
CryptoSm libCrypto.Sm
}
type RequestCoreInterface interface {
GetDB() libQuery.QueryRunnerInterface
RequestTools() libRequest.RequestInterface
Consumer() libCallApi.CallApiInterface
Responder() response.ResponseHandler
Dictionary() libDictionary.DictionaryInterface
Params() libParams.ParamsInterface
Sm() libCrypto.Sm
}