handlers

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: 20 Imported by: 0

Documentation

Index

Constants

View Source
const UpdateAllType = 0
View Source
const UpdateGeneralType = 1

Variables

View Source
var NotFoundHTTPStatusError = errors.New("NotFoundHTTPStatusError")

Functions

func CreateCollectiveHandle

func CreateCollectiveHandle(c *fiber.Ctx) error

func CreateDtoCollectiveHandle

func CreateDtoCollectiveHandle(c *fiber.Ctx) error

CreateCollectiveHandle handle create a new collective

func DispatchCollectiveHandle

func DispatchCollectiveHandle(c *fiber.Ctx) error

DispatchCollectiveHandle a function invocation to read authed user profile

func GetCollectiveByIds

func GetCollectiveByIds(c *fiber.Ctx) error

GetCollectiveByIds a function invocation to profiles by ids

func IncreaseFollowerCount

func IncreaseFollowerCount(c *fiber.Ctx) error

IncreaseFollowerCount a function invocation

func IncreasePostCount

func IncreasePostCount(c *fiber.Ctx) error

IncreaseFollowCount a function invocation

func InitCollectiveIndexHandle

func InitCollectiveIndexHandle(c *fiber.Ctx) error

InitCollectiveIndexHandle handle create a new index

func QueryCollectiveHandle

func QueryCollectiveHandle(c *fiber.Ctx) error

QueryCollectiveHandle handle query on collective

func ReadCollectiveHandle

func ReadCollectiveHandle(c *fiber.Ctx) error

ReadProfileHandle a function invocation

func ReadDtoCollectiveHandle

func ReadDtoCollectiveHandle(c *fiber.Ctx) error

ReadDtoCollectiveHandle a function invocation

Types

type Action

type Action struct {
	Type    string      `json:"type"`
	Payload interface{} `json:"payload"`
}

type CollectiveQueryModel

type CollectiveQueryModel struct {
	Search     string      `query:"search"`
	Page       int64       `query:"page"`
	NotInclude []uuid.UUID `query:"nin"`
}

type MembersPayload

type MembersPayload struct {
	Collectives map[string]interface{} `json:"users"`
}

type UpdateCollectiveQueryModel

type UpdateCollectiveQueryModel struct {
	UpdateType int `query:"updateType"`
}

type UserInfoInReq

type UserInfoInReq struct {
	UserId      uuid.UUID `json:"userId"`
	Username    string    `json:"username"`
	Avatar      string    `json:"avatar"`
	DisplayName string    `json:"displayName"`
	SystemRole  string    `json:"systemRole"`
}

Jump to

Keyboard shortcuts

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