31 lines
		
	
	
		
			685 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			31 lines
		
	
	
		
			685 B
		
	
	
	
		
			Go
		
	
	
	
	
	
|  | package whitelistlogic | ||
|  | 
 | ||
|  | import ( | ||
|  | 	"context" | ||
|  | 
 | ||
|  | 	"tianyuan-api/apps/sentinel/internal/svc" | ||
|  | 	"tianyuan-api/apps/sentinel/sentinel" | ||
|  | 
 | ||
|  | 	"github.com/zeromicro/go-zero/core/logx" | ||
|  | ) | ||
|  | 
 | ||
|  | type UpdateWhitelistLogic struct { | ||
|  | 	ctx    context.Context | ||
|  | 	svcCtx *svc.ServiceContext | ||
|  | 	logx.Logger | ||
|  | } | ||
|  | 
 | ||
|  | func NewUpdateWhitelistLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateWhitelistLogic { | ||
|  | 	return &UpdateWhitelistLogic{ | ||
|  | 		ctx:    ctx, | ||
|  | 		svcCtx: svcCtx, | ||
|  | 		Logger: logx.WithContext(ctx), | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func (l *UpdateWhitelistLogic) UpdateWhitelist(in *sentinel.UpdateWhitelistRequest) (*sentinel.Whitelist, error) { | ||
|  | 	// todo: add your logic here and delete this line | ||
|  | 
 | ||
|  | 	return &sentinel.Whitelist{}, nil | ||
|  | } |