package plane_v1 import ( "fmt" "go.uber.org/zap" ) // ==================== User API ==================== // GetMe 获取当前用户信息 func GetMe() ([]byte, error) { resp, err := planeHttpGet("/api/v1/users/me/") if err != nil { zap.L().Error("[Plane] GetMe 请求失败", zap.Error(err)) return nil, err } if !isSuccess(resp.StatusCode) { zap.L().Error("[Plane] GetMe 返回错误", zap.String("status", resp.Status)) return nil, fmt.Errorf("GetMe 失败: %s", resp.Status) } return resp.Body, nil }