This repository has been archived on 2021-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
DBHomework/handler.h

39 lines
852 B
C
Raw Normal View History

2017-12-28 18:18:44 +08:00
#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);