Documentation ¶
Overview ¶
*
- @Author: Jacky
- @Description:
- @File: auth
- @Version: 1.0.0
- @Date: 2022/4/27 14:40
*
- @Author: Jacky
- @Description:
- @File: errcode
- @Version: 1.0.0
- @Date: 2022/4/28 16:08
*
- @Author: Jacky
- @Description:
- @File: submail
- @Version: 1.0.0
- @Date: 2022/4/27 10:52
*
- @Author: Jacky
- @Description:
- @File: utils
- @Version: 1.0.0
- @Date: 2022/4/27 15:48
Index ¶
Constants ¶
View Source
const ( MD5 SignType = "md5" SHA1 SignType = "sha1" Normal SignType = "normal" Version1 SignVersion = "1" Version2 SignVersion = "2" )
View Source
const (
SUCCESS int = 0 // 请求成功
)
Variables ¶
This section is empty.
Functions ¶
func JsonContentType ¶
func JsonMarshal ¶
func JsonMarshal(v interface{}) string
Types ¶
type Option ¶
type Option func(c *config)
func WithSignType ¶
func WithSignVersion ¶
func WithSignVersion(signVersion SignVersion) Option
type SignVersion ¶
type SignVersion string
func (SignVersion) Is ¶
func (v SignVersion) Is(version string) bool
Click to show internal directories.
Click to hide internal directories.