#include "stdafx.h" #include "mod_upload.h" void UploadSession::Handle_UploadProgess(SpReqAnsContext::Pointer ctx) { DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI("Handle_UploadProgess")("UploadProgessReq received!"); ErrorCodeEnum returnCode = ((CUploadEntity*)m_pEntity)->UploadProgess(ctx); ctx->Answer(returnCode); } void UploadSession::Handle_UploadNumber(SpReqAnsContext::Pointer ctx) { DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI("Handle_UploadNumber")("UploadNumberReq received!"); ErrorCodeEnum returnCode = ((CUploadEntity*)m_pEntity)->UploadNumber(ctx); ctx->Answer(returnCode); } void UploadSession::Handle_UploadDateList(SpReqAnsContext::Pointer ctx) { DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI("Handle_UploadDateList")("UploadDateList received!"); ErrorCodeEnum returnCode = ((CUploadEntity*)m_pEntity)->UploadDateList(ctx); ctx->Answer(returnCode); } void UploadSession::Handle_ClearUploadDate(SpReqAnsContext::Pointer ctx) { DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI("Handle_ClearUploadDate")("ClearUploadDate received!"); ErrorCodeEnum returnCode = ((CUploadEntity*)m_pEntity)->ClearUploadDate(ctx); ctx->Answer(returnCode); } SP_BEGIN_ENTITY_MAP() SP_ENTITY(CUploadEntity) SP_END_ENTITY_MAP()