// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package ozone

// schema: tools.ozone.moderation.getRecord

import (
	"context"

	"github.com/bluesky-social/indigo/xrpc"
)

// ModerationGetRecord calls the XRPC method "tools.ozone.moderation.getRecord".
func ModerationGetRecord(ctx context.Context, c *xrpc.Client, cid string, uri string) (*ModerationDefs_RecordViewDetail, error) {
	var out ModerationDefs_RecordViewDetail

	params := map[string]interface{}{
		"cid": cid,
		"uri": uri,
	}
	if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRecord", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
