model

package
v0.0.0-...-09e72e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package model contains the model definitions for mouthful API response and request types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCommentBody

type CreateCommentBody struct {
	Path    string  `json:"path"`
	Body    string  `json:"body"`
	Author  string  `json:"author"`
	Email   *string `json:"email,omitempty"`
	ReplyTo *string `json:"replyTo,omitempty"`
}

CreateCommentBody is a struct that represents a create comment request

type CreateCommentResponse

type CreateCommentResponse struct {
	Id      string  `json:"id"`
	Path    string  `json:"path"`
	Body    string  `json:"body"`
	Author  string  `json:"author"`
	Email   *string `json:"email,omitempty"`
	ReplyTo *string `json:"replyTo,omitempty"`
}

CreateCommentResponse is a struct that represents a create comment response

type DeleteCommentBody

type DeleteCommentBody struct {
	CommentId string `json:"commentId"`
	Hard      bool   `json:"hard"`
}

DeleteCommentBody is a struct that represents a delete comment request

type LoginBody

type LoginBody struct {
	Password string `json:"password"`
}

LoginBody is a struct that represents a login request

type UpdateCommentBody

type UpdateCommentBody struct {
	CommentId string  `json:"commentId"`
	Body      *string `json:"body,omitempty"`
	Author    *string `json:"author,omitempty"`
	Confirmed *bool   `json:"confirmed,omitempty"`
}

UpdateCommentBody is a struct that represents an update comment request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL