partnershipdal

package
v0.0.0-...-99b79bc Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DasPartnershipRequestBlacklistTable                   = "DAS.PARTNERSHIP_REQUEST_BLACKLIST"
	DasPartnershipRequestBlacklistColumnReporterID        = "REPORTER_ID"
	DasPartnershipRequestBlacklistColumnBlockedUserID     = "BLOCKED_USER_ID"
	DasPartnershipRequestBlacklistColumnBlacklistReasonID = "BLACKLIST_REASON_ID"
	DAS_PARTNERSHIP_REQUEST_BLACKLIST_COL_DETAIL          = "DETAIL"
	DAS_PARTNERSHIP_REQUEST_BLACKLIST_COL_WHITELISTED_IND = "WHITELISTED_IND"
)
View Source
const (
	DasPartnershipTable = "DAS.PARTNERSHIP"

	DAS_PARTNERSHIP_REQUEST_BLACKLIST_REASON_TABLE = "DAS.PARTNERSHIP_REQUEST_BLACKLIST_REASON"
)
View Source
const (
	DAS_PARTNERSHIP_REQUEST_TABLE              = "DAS.PARTNERSHIP_REQUEST"
	DAS_PARTNERSHIP_REQUEST_COL_SENDER_ID      = "SENDER_ID"
	DAS_PARTNERSHIP_REQUEST_COL_RECIPIEINT_ID  = "RECIPIENT_ID"
	DAS_PARTNERSHIP_REQUEST_COL_SENDER_ROLE    = "SENDER_ROLE"
	DAS_PARTNERSHIP_REQUEST_COL_RECIPIENT_ROLE = "RECIPIENT_ROLE"
	DAS_PARTNERSHIP_REQUEST_COL_MESSAGE        = "MESSAGE"
	DAS_PARTNERSHIP_REQUEST_COL_REQUEST_STATUS = "REQUEST_STATUS"
)
View Source
const (
	DAS_PARTNERSHIP_REQUEST_STATUS_TABLE                 = "DAS.PARTNERSHIP_REQUEST_STATUS"
	DAS_PARTNERSHIP_REQUEST_STATUS_COL_REQUEST_STATUS_ID = "REQUEST_STATUS_ID"
	DAS_PARTNERSHIP_REQUEST_STATUS_COL_CODE              = "CODE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresPartnershipRepository

type PostgresPartnershipRepository struct {
	Database   *sql.DB
	SqlBuilder squirrel.StatementBuilderType
}

PostgresPartnershipRepository implements IPartnershipRepository

func (PostgresPartnershipRepository) CreatePartnership

func (repo PostgresPartnershipRepository) CreatePartnership(partnership *businesslogic.Partnership) error

CreatePartnership creates the specified partnership in Postgres database and updates the ID

func (PostgresPartnershipRepository) DeletePartnership

func (repo PostgresPartnershipRepository) DeletePartnership(partnership businesslogic.Partnership) error

func (PostgresPartnershipRepository) SearchPartnership

SearchPartnership searches partnerships in a Postgres database based on the criteria of search

func (PostgresPartnershipRepository) UpdatePartnership

func (repo PostgresPartnershipRepository) UpdatePartnership(partnership businesslogic.Partnership) error

type PostgresPartnershipRequestBlacklistReasonRepository

type PostgresPartnershipRequestBlacklistReasonRepository struct {
	Database   *sql.DB
	SqlBuilder squirrel.StatementBuilderType
}

func (PostgresPartnershipRequestBlacklistReasonRepository) GetPartnershipRequestBlacklistReasons

type PostgresPartnershipRequestBlacklistRepository

type PostgresPartnershipRequestBlacklistRepository struct {
	Database   *sql.DB
	SqlBuilder squirrel.StatementBuilderType
}

func (PostgresPartnershipRequestBlacklistRepository) CreatePartnershipRequestBlacklist

func (PostgresPartnershipRequestBlacklistRepository) DeletePartnershipRequestBlacklist

func (PostgresPartnershipRequestBlacklistRepository) SearchPartnershipRequestBlacklist

func (PostgresPartnershipRequestBlacklistRepository) UpdatePartnershipRequestBlacklist

UpdatePartnershipRequestBlacklist will only update the whitelist status. Updating the detail or report reason is not allowed.

type PostgresPartnershipRequestRepository

type PostgresPartnershipRequestRepository struct {
	Database   *sql.DB
	SqlBuilder squirrel.StatementBuilderType
}

func (PostgresPartnershipRequestRepository) CreatePartnershipRequest

func (repo PostgresPartnershipRequestRepository) CreatePartnershipRequest(request *businesslogic.PartnershipRequest) error

func (PostgresPartnershipRequestRepository) DeletePartnershipRequest

func (repo PostgresPartnershipRequestRepository) DeletePartnershipRequest(request businesslogic.PartnershipRequest) error

func (PostgresPartnershipRequestRepository) GetReceivedRequests

func (repo PostgresPartnershipRequestRepository) GetReceivedRequests(recipientID int) ([]businesslogic.PartnershipRequest, error)

func (PostgresPartnershipRequestRepository) GetSentRequests

func (PostgresPartnershipRequestRepository) SearchPartnershipRequest

func (PostgresPartnershipRequestRepository) UpdatePartnershipRequest

func (repo PostgresPartnershipRequestRepository) UpdatePartnershipRequest(request businesslogic.PartnershipRequest) error

type PostgresPartnershipRequestStatusRepository

type PostgresPartnershipRequestStatusRepository struct {
	Database   *sql.DB
	SqlBuilder squirrel.StatementBuilderType
}

func (PostgresPartnershipRequestStatusRepository) GetPartnershipRequestStatus

type PostgresPartnershipRoleRepository

type PostgresPartnershipRoleRepository struct {
	Database   *sql.DB
	SqlBuilder squirrel.StatementBuilderType
}

PostgresPartnershipRoleRepository implements the IPartnershipRoleRepository with a Postgres database

func (PostgresPartnershipRoleRepository) GetAllPartnershipRoles

func (repo PostgresPartnershipRoleRepository) GetAllPartnershipRoles() ([]businesslogic.PartnershipRole, error)

type PostgresPartnershipStatusRepository

type PostgresPartnershipStatusRepository struct {
	Database   *sql.DB
	SqlBuilder squirrel.StatementBuilderType
}

Jump to

Keyboard shortcuts

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