-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameHttpImp.h
More file actions
87 lines (69 loc) · 1.73 KB
/
Copy pathGameHttpImp.h
File metadata and controls
87 lines (69 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef _GameHttpImp_H_
#define _GameHttpImp_H_
//
#include "servant/Application.h"
#include "HttpServer.h"
#include "GameHttp.h"
/**
* http请求处理类
*
*/
class GameHttpImp : public tars::Servant
{
public:
/**
*
*/
GameHttpImp() {}
/**
*
*/
virtual ~GameHttpImp() {}
/**
*
*/
virtual void initialize();
/**
*
*/
virtual void destroy();
/**
*
*/
virtual int doRequest(tars::TarsCurrentPtr current, vector<char> &response);
/**
*
*/
virtual int doHello(tars::TarsCurrentPtr current, HttpRequestPtr req, HttpResponsePtr rsp);
/**
*
*/
virtual int doVersion(tars::TarsCurrentPtr current, HttpRequestPtr req, HttpResponsePtr rsp);
/**
*
*/
virtual int doReserve(tars::TarsCurrentPtr current, HttpRequestPtr req, HttpResponsePtr rsp);
/**
*
*/
virtual int doWalletOrderCallBack(TarsCurrentPtr current, HttpRequestPtr req, HttpResponsePtr rsp, string sUrlKey);
/**
*
*/
virtual int doMonitor(tars::TarsCurrentPtr current, HttpRequestPtr req, HttpResponsePtr rsp);
/**
*
*/
virtual int doReport(tars::TarsCurrentPtr current, HttpRequestPtr req, HttpResponsePtr rsp);
/**
*
*/
virtual int doHttpRequest(tars::TarsCurrentPtr current, string &sUrlKey, HttpRequestPtr req, HttpResponsePtr rsp);
private:
/*
* 需要鉴权的请求
*/
int AuthRequest(TarsCurrentPtr current, HttpRequestPtr Req, vector<tars::Char> &vecPostBody, map<string, string> &mapExtInfo, string &sUrlkey);
};
/////////////////////////////////////////////////////
#endif