1234567891011121314151617181920212223242526 |
- package admin_common
- import (
- "github.com/gin-gonic/gin"
- "net/http"
- "sghgogs.com/sghblog/authorization-client/response"
- "sghgogs.com/sghblog/authorization-client/utils"
- pb "sghgogs.com/sghblog/authorization-service/proto"
- )
- func (svc *ApiAdminCommon) Logout(c *gin.Context) {
- ctx, _ := utils.CreateContextWithToken(c, "authorizationservice", "CommonService.AdminLogout")
- svc.Service.AdminLogout(ctx, &pb.AdminLogoutRequest{})
- c.JSON(http.StatusOK, response.SuccessResponse(nil))
- }
|