This commit is contained in:
2021-07-25 19:05:59 +08:00
parent d0e44320fc
commit c463d12f0b
47 changed files with 201 additions and 201 deletions

View File

@@ -2,7 +2,7 @@
//
// Description : redis...
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2021-02-27 8:22 下午
package redis
@@ -30,7 +30,7 @@ const (
// Context 请求上下文
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:25 下午 2021/2/27
type Context struct {
@@ -44,7 +44,7 @@ type Context struct {
// NewContext 生成一个上下文
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:26 下午 2021/2/27
func NewContext(flag string, of ...SetContextFunc) *Context {
@@ -87,7 +87,7 @@ type SetContextFunc func(rc *Context)
// WithCtx 设置context
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:30 下午 2021/2/27
func WithCtx(ctx context.Context) SetContextFunc {
@@ -98,7 +98,7 @@ func WithCtx(ctx context.Context) SetContextFunc {
// WithGinCtx 设置gin上下文
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:34 下午 2021/2/27
func WithGinCtx(ginCtx *gin.Context) SetContextFunc {
@@ -109,7 +109,7 @@ func WithGinCtx(ginCtx *gin.Context) SetContextFunc {
// WithExtra 设置扩展信息
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:36 下午 2021/2/27
func WithExtra(extra easymap.EasyMap) SetContextFunc {
@@ -120,7 +120,7 @@ func WithExtra(extra easymap.EasyMap) SetContextFunc {
// WithRequestIDField 设置request_id参数名
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:41 下午 2021/2/27
func WithRequestIDField(requestIDField string) SetContextFunc {
@@ -131,7 +131,7 @@ func WithRequestIDField(requestIDField string) SetContextFunc {
// WithRequestID ...
//
// Author : go_developer@163.com<张德满>
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:42 下午 2021/2/27
func WithRequestID(requestID string) SetContextFunc {