adminUserModule

adminUserModule

class to handle user functions

Constructor

new adminUserModule()

Source:

Methods

(async, static) checkEmailExisting(nameID) → {object}

Source:

Check Email Exists

Parameters:
Name Type Description
nameID string

Email which has to be checked for unique

Returns:

sql response

Type
object

(async, static) commonselectparenttable(data, baseTableUsed) → {object}

Source:

Select query to fetch all users

Parameters:
Name Type Description
data object

request.body data

baseTableUsed string

baseTable which the query has to be generated

Returns:

sql response

Type
object

(async, static) createuserlist(req, data, baseTableUsed) → {object}

Source:

Create a user insert query

Parameters:
Name Type Description
req object

request data

data object

request.body data

baseTableUsed string

baseTable which the query has to be generated

Returns:

sql response

Type
object

(async, static) fetchBiddingBuyersAll(req) → {object}

Source:

Fetch Bidding buyers All

Parameters:
Name Type Description
req object

request data

Returns:

sql response

Type
object

(async, static) fetchBuyersAll(req, count) → {object}

Source:

Fetch All Buyers

Parameters:
Name Type Description
req object

request data

count string

count for the pagination

Returns:

sql response

Type
object

(async, static) fetchUsersbyID(pid) → {object}

Source:

Fetch Single User

Parameters:
Name Type Description
pid number

User ID which details has to be fetched

Returns:

sql response

Type
object

(async, static) getparticulartabledetails(data, fieldType, postID, baseTableUsed, limit) → {object}

Source:

Get particula table details

Parameters:
Name Type Description
data object

request.body data

fieldType string

fieldType

postID number

post ID

baseTableUsed string

baseTable which the query has to be generated

limit number

limt the table retrive records

Returns:

sql response

Type
object

(async, static) manualInsertUsernotify(uid) → {object}

Source:

Manual insert notification

Parameters:
Name Type Description
uid number

user ID which notification has to be added

Returns:

sql response

Type
object

(async, static) updatealltypeofuser(req, data, baseTableUsed) → {object}

Source:

Update query for the users

Parameters:
Name Type Description
req object

request data

data object

request.body data

baseTableUsed string

baseTable which the query has to be generated

Returns:

sql response

Type
object

(async, static) userOperation(req) → {object}

Source:

User Operation to update or insert

Parameters:
Name Type Description
req object

req object

Returns:

sql response

Type
object

(async, static) userStatusUpdate(status, uid) → {object}

Source:

Update user status

Parameters:
Name Type Description
status string

status which has to be updated

uid number

user ID where status to be updated

Returns:

sql response

Type
object