// Code generated by indigo lexgen tool. DO NOT EDIT MANUALLY. // Lexicon schema: place.atwork.getListing package placeatwork import ( "context" lexutil "github.com/bluesky-social/indigo/lex/util" ) // GetListing_Output is the output of a place.atwork.getListing call. type GetListing_Output struct { // cid: CID of the listing record Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` // uri: AT-URI of the listing Uri string `json:"uri" cborgen:"uri"` // value: The job listing record Value Listing `json:"value" cborgen:"value"` } // GetListing calls the XRPC method "place.atwork.getListing". // // # Get a single job listing by repo (DID) and record key // // repo: The DID of the repo (repository owner) // rkey: The record key (TID) func GetListing(ctx context.Context, c lexutil.LexClient, repo string, rkey string) (*GetListing_Output, error) { var out GetListing_Output params := map[string]interface{}{} params["repo"] = repo params["rkey"] = rkey if err := c.LexDo(ctx, lexutil.Query, "", "place.atwork.getListing", params, nil, &out); err != nil { return nil, err } return &out, nil }