lib/api/members/members_models/prompt.go

94 lines
2.2 KiB
Go
Raw Normal View History

2023-06-04 23:54:48 +00:00
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package members_models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// Prompt A prompt
//
// swagger:model prompt
type Prompt struct {
// The ID of the user who created the prompt
CreatedByID string `json:"CreatedByID,omitempty"`
// The date the prompt was created
CreatedDate string `json:"CreatedDate,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// The icon for the prompt
Icon string `json:"Icon,omitempty"`
// The alt text for the prompt image
ImageAltText string `json:"ImageAltText,omitempty"`
// The URL of the prompt image
ImageURL string `json:"ImageURL,omitempty"`
// The ID of the user who last modified the prompt
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// The date the prompt was last modified
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// The ID of the prompt category
PromptCategoryID string `json:"PromptCategoryID,omitempty"`
// A list of research project IDs
ResearchProjectIDs []string `json:"ResearchProjectIDs"`
// The slug for the prompt
Slug string `json:"Slug,omitempty"`
// A list of tags
Tags []string `json:"Tags"`
// The prompt text
Text string `json:"Text,omitempty"`
// The number of times the prompt has been used
UsedCount float64 `json:"UsedCount,omitempty"`
}
// Validate validates this prompt
func (m *Prompt) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this prompt based on context it is used
func (m *Prompt) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Prompt) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Prompt) UnmarshalBinary(b []byte) error {
var res Prompt
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}