auctionModule

auctionModule

class to handle auction functions

Constructor

new auctionModule()

Source:

Methods

(async, static) addAuctionWatchlist(req, auctionID) → {object}

Source:

add to watchlist for the user and project

Parameters:
Name Type Description
req object

request data

auctionID string

auctionlot_id to which user requested for watchlist

Returns:

sql response

Type
object

(async, static) auctionIsInWatchlist(req, auctionID) → {object}

Source:

check if the project is in watch list table for the user

Parameters:
Name Type Description
req object

request data

auctionID string

data is the req.body

Returns:

sql response

Type
object

(async, static) getAuctionProjectDetails(pid, req) → {object}

Source:

get auction project details

Parameters:
Name Type Description
pid number

project id

req object

request object

Returns:

sql response

Type
object

(async, static) getAuctionWatchList(req, data, count) → {object}

Source:

remove watchlist for the user and project

Parameters:
Name Type Description
req object

request data

data string

data

count number

data

Returns:

sql response

Type
object

(async, static) getAuctionWatchListDetails(uid, pid) → {object}

Source:

get Auction Watch list details

Parameters:
Name Type Description
uid number

user id

pid number

project id

Returns:

sql response

Type
object

(async, static) getMyBids(req, data, count) → {object}

Source:
Parameters:
Name Type Description
req object

request data

data object

data

count number

count

Returns:

sql query

Type
object

(async, static) removeAuctionWatchlist(req, auctionID) → {object}

Source:

remove watchlist for the user and project

Parameters:
Name Type Description
req object

request data

auctionID string

auction_id to which user requested for watchlist

Returns:

sql response

Type
object

(async, static) searchAuctions(req, data, count) → {object}

Source:

Search all the search auction

Parameters:
Name Type Description
req object

req object

data object

req.body object

count number

count for the pagination

Returns:

sql response

Type
object

(async, static) updateAuctionWatchlist(req, auctionID) → {object}

Source:

update watchlist to the user and project

Parameters:
Name Type Description
req object

request data

auctionID string

auction_id to which user requested for watchlist

Returns:

sql response

Type
object