You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
323 B
20 lines
323 B
2 years ago
|
package http
|
||
|
|
||
|
import (
|
||
|
"gitea.drugeyes.vip/pharnexbase/utils/enum"
|
||
|
)
|
||
|
|
||
|
type Transport struct {
|
||
|
env enum.Env // 环境
|
||
|
sm4Key string // sm4Key
|
||
|
apiKey string // apiKey
|
||
|
}
|
||
|
|
||
|
func NewTransport(env enum.Env, sm4Key, apiKey string) *Transport {
|
||
|
return &Transport{
|
||
|
env: env,
|
||
|
sm4Key: sm4Key,
|
||
|
apiKey: apiKey,
|
||
|
}
|
||
|
}
|