banks

package
v0.0.0-...-5cdcd7b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQueue

func AddQueue(ctx *fasthttp.RequestCtx)

for add user to queue

url: http://localhost:8020/banks/@id/queue/add method:GET params:

@id= bank id
token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXNzd29yZCI6IjExZjE5Y2M2Njg2Y2QxOWI1NTM2OTI1YmU3ODNlMDRlZjlmZDViZDk1MTVmMzA1YmQ5OTE4NjZmM2YwMGRmNjAiLCJ1c2VybmFtZSI6IjA5MTIxMjEyMzEifQ.eTH8Qo8P_MZ7Ui1WOm4Cl-9VHLiDiq4Z668cobhJdFM

func CancelQueue

func CancelQueue(ctx *fasthttp.RequestCtx)

func GetBankById

func GetBankById(ctx *fasthttp.RequestCtx)

get bank with id

func GetBanks

func GetBanks(ctx *fasthttp.RequestCtx)

func Index

func Index(ctx *fasthttp.RequestCtx)

cancel turn

url: http://localhost:8020/bank/@bank_id/queue/@turn_number/cancel method:GET params:

@bank_id = bank id
@turn_number = user turn number in bank queue
token= eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXNzd29yZCI6ImU3Y2YzZWY0ZjE3YzM5OTlhOTRmMmM2ZjYxMmU4YTg4OGU1YjEwMjY4NzhlNGUxOTM5OGIyM2JkMzhlYzIyMWEiLCJ1c2VybmFtZSI6IjA5MDMzNjA2NzM0In0.ynvqlkGkEiA0RKAlXoiF5fWC_4urZFh_uvej9nYs_dA

func RunQueue

func RunQueue(ctx *fasthttp.RequestCtx)

for bank operator run queue

url: http://localhost:8020/banks/@bank_id/queue/run method:GET params:

@bank_id = bank id
token= eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXNzd29yZCI6ImU3Y2YzZWY0ZjE3YzM5OTlhOTRmMmM2ZjYxMmU4YTg4OGU1YjEwMjY4NzhlNGUxOTM5OGIyM2JkMzhlYzIyMWEiLCJ1c2VybmFtZSI6IjA5MDMzNjA2NzM0In0.ynvqlkGkEiA0RKAlXoiF5fWC_4urZFh_uvej9nYs_dA

Types

This section is empty.

Jump to

Keyboard shortcuts

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