29 lines
		
	
	
		
			499 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			499 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package auth
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 
 | |
| 	"github.com/zeromicro/go-zero/core/logx"
 | |
| 	"tianyuan-api/apps/gateway/internal/svc"
 | |
| )
 | |
| 
 | |
| type LogoutLogic struct {
 | |
| 	logx.Logger
 | |
| 	ctx    context.Context
 | |
| 	svcCtx *svc.ServiceContext
 | |
| }
 | |
| 
 | |
| func NewLogoutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LogoutLogic {
 | |
| 	return &LogoutLogic{
 | |
| 		Logger: logx.WithContext(ctx),
 | |
| 		ctx:    ctx,
 | |
| 		svcCtx: svcCtx,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (l *LogoutLogic) Logout() error {
 | |
| 	// todo: add your logic here and delete this line
 | |
| 
 | |
| 	return nil
 | |
| }
 |