db

package
v0.0.0-...-1580491 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB1

type DB1 struct {
	*gorm.DB
}

DB1 postgres

func (*DB1) CreateComment

func (db *DB1) CreateComment(comment *model.Comment) error

CreateComment function

func (*DB1) DeleteCommentsByOrganizationID

func (db *DB1) DeleteCommentsByOrganizationID(organizationID uuid.UUID) (int64, error)

DeleteCommentsByOrganizationID function

func (*DB1) GetCommentsByOrganizationID

func (db *DB1) GetCommentsByOrganizationID(organizationID uuid.UUID, pagination model.Pagination) ([]model.Comment, error)

GetCommentsByOrganizationID function

func (*DB1) GetMemberByID

func (db *DB1) GetMemberByID(memberID uuid.UUID) (model.Member, error)

GetMemberByID function

func (*DB1) GetMembersByOrganizationID

func (db *DB1) GetMembersByOrganizationID(organizationID uuid.UUID, pagination model.Pagination) ([]model.Member, error)

GetMembersByOrganizationID function

func (*DB1) GetOrganizationByCode

func (db *DB1) GetOrganizationByCode(organizationCode string) (model.Organization, error)

GetOrganizationByCode function

Jump to

Keyboard shortcuts

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