39 lines
852 B
C
39 lines
852 B
C
|
#pragma once
|
||
|
#include "bs_util.h"
|
||
|
|
||
|
#define DECL_HANDLER(fname) extern void fname(Request& req,Session& se,Response& res,json& j)
|
||
|
|
||
|
DECL_HANDLER(UserLogin);
|
||
|
DECL_HANDLER(UserLogout);
|
||
|
|
||
|
DECL_HANDLER(CheckLogin);
|
||
|
DECL_HANDLER(CheckLoginX);
|
||
|
|
||
|
DECL_HANDLER(UserReaderAdd);
|
||
|
DECL_HANDLER(UserReaderEdit);
|
||
|
DECL_HANDLER(UserReaderRemove);
|
||
|
DECL_HANDLER(UserSearch);
|
||
|
DECL_HANDLER(UserReaderGet);
|
||
|
DECL_HANDLER(UserReaderGetLow);
|
||
|
|
||
|
DECL_HANDLER(BookAdd);
|
||
|
DECL_HANDLER(BookEdit);
|
||
|
DECL_HANDLER(BookRemove);
|
||
|
|
||
|
DECL_HANDLER(BookObjAdd);
|
||
|
DECL_HANDLER(BookObjEdit);
|
||
|
DECL_HANDLER(BookObjRemove);
|
||
|
|
||
|
DECL_HANDLER(BookTypeGet);
|
||
|
DECL_HANDLER(BookTypeAdd);
|
||
|
DECL_HANDLER(BookTypeEdit);
|
||
|
DECL_HANDLER(BookTypeRemove);
|
||
|
|
||
|
DECL_HANDLER(BookSearch);
|
||
|
DECL_HANDLER(BookGetInfo);
|
||
|
DECL_HANDLER(BookGetObjInfo);
|
||
|
DECL_HANDLER(BookGetBorrowed);
|
||
|
|
||
|
DECL_HANDLER(BookBorrow);
|
||
|
DECL_HANDLER(BookReturn);
|