models

package
v0.0.0-...-b4a6059 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectiveGeneralUpdateModel

type CollectiveGeneralUpdateModel struct {
	Avatar      string `json:"avatar" bson:"avatar"`
	Banner      string `json:"banner" bson:"banner"`
	Name        string `json:"Name" bson:"Name"`
	Tagline     string `json:"tagLine" bson:"tagLine"`
	Title       string `json:"title" bson:"title"`
	Body        string `json:"body" bson:"body"`
	LastUpdated int64  `json:"last_updated" bson:"last_updated"`
}

type CollectiveUpdateModel

type CollectiveUpdateModel struct {
	Name        string `json:"Name" bson:"Name"`
	Avatar      string `json:"avatar" bson:"avatar"`
	Banner      string `json:"banner" bson:"banner"`
	Tagline     string `json:"tagLine" bson:"tagLine"`
	Title       string `json:"title" bson:"title"`
	Body        string `json:"body" bson:"body"`
	CreatedDate int64  `json:"created_date" bson:"created_date"`
	LastUpdated int64  `json:"last_updated" bson:"last_updated"`
}

type CollectivesModel

type CollectivesModel struct {
	CollectiveId  uuid.UUID `json:"collectiveId" bson:"collectiveId"`
	Name          string    `json:"Name" bson:"Name" validate:"max=50"`
	Avatar        string    `json:"avatar" bson:"avatar" validate:"max=500"`
	Banner        string    `json:"banner" bson:"banner" validate:"max=500"`
	Tagline       string    `json:"tagLine" bson:"tagLine"`
	Title         string    `json:"title" bson:"title"`
	Body          string    `json:"body" bson:"body"`
	CreatedDate   int64     `json:"created_date" bson:"created_date"`
	LastUpdated   int64     `json:"last_updated" bson:"last_updated"`
	VoteCount     int64     `json:"voteCount" bson:"voteCount"`
	FollowerCount int64     `json:"followerCount" bson:"followerCount"`
	PostCount     int64     `json:"postCount" bson:"postCount"`
}

type DispatchCollectiveModel

type DispatchCollectiveModel struct {
	CollectiveIds []uuid.UUID `json:"collectiveIds" bson:"collectiveIds"`
	ReqUserId     uuid.UUID   `json:"reqUserId" bson:"reqUserId"`
}

type GetCollectiveModel

type GetCollectiveModel struct {
	CollectiveIds []uuid.UUID `json:"CollectiveIds" bson:"CollectiveIds"`
}

type MyCollectiveModel

type MyCollectiveModel struct {
	CollectiveId  uuid.UUID `json:"collectiveId" bson:"collectiveId"`
	Name          string    `json:"Name" bson:"Name" validate:"max=50"`
	Avatar        string    `json:"avatar" bson:"avatar" validate:"max=500"`
	Banner        string    `json:"banner" bson:"banner" validate:"max=500"`
	Tagline       string    `json:"tagLine" bson:"tagLine"`
	Title         string    `json:"title" bson:"title"`
	Body          string    `json:"body" bson:"body"`
	CreatedDate   int64     `json:"created_date" bson:"created_date"`
	LastUpdated   int64     `json:"last_updated" bson:"last_updated"`
	VoteCount     int64     `json:"voteCount" bson:"voteCount"`
	ShareCount    int64     `json:"shareCount" bson:"shareCount"`
	FollowerCount int64     `json:"followerCount" bson:"followerCount"`
	PostCount     int64     `json:"postCount" bson:"postCount"`
}

Jump to

Keyboard shortcuts

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