Przeglądaj źródła

Z991239-5615 #comment feat: entityName改称module 。have no words to say

oilyang 1 rok temu
rodzic
commit
d3d62f986d

+ 2 - 2
Module/mod_healthmanager/HealthManager_def_g.h

@@ -237,14 +237,14 @@ struct HealthManagerService_GetAuthErrMsg_Ans
 
 struct HealthManagerService_QueryCenterCfg_Req
 {
-	CSimpleStringA entityName;
+	CSimpleStringA module;
 	CSimpleStringA key;
 	CAutoArray<int> reserved1;
 	CAutoArray<CSimpleStringA> reserved2;
 
 	void Serialize(SpBuffer &Buf)
 	{
-		auto & buf = Buf & entityName & key & reserved1 & reserved2;
+		auto & buf = Buf & module & key & reserved1 & reserved2;
 	}
 
 };

+ 1 - 1
Module/mod_healthmanager/Healthmanager.xml

@@ -91,7 +91,7 @@
 		</twoway>
 		<twoway name="QueryCenterCfg" overlap="true">
 			<req>
-				<param name="entityName" type="string" />
+				<param name="module" type="string" />
 				<param name="key" type="string" />
 				<param name="reserved1" type="array_int" />
 				<param name="reserved2" type="array_string" />				

+ 2 - 2
Module/mod_healthmanager/mod_healthmanager.cpp

@@ -1006,7 +1006,7 @@ void CHealthManagerEntity::ReadCenterConfigStr(SpReqAnsContext<HealthManagerServ
 }
 void CHealthManagerEntity::QueryCenterCfg(SpReqAnsContext<HealthManagerService_QueryCenterCfg_Req, HealthManagerService_QueryCenterCfg_Ans>::Pointer ctx)
 {
-	if (ctx->Req.key.IsNullOrEmpty() || ctx->Req.entityName.IsNullOrEmpty())
+	if (ctx->Req.key.IsNullOrEmpty() || ctx->Req.module.IsNullOrEmpty())
 		ctx->Answer(Error_Param);
 	else
 	{
@@ -1014,7 +1014,7 @@ void CHealthManagerEntity::QueryCenterCfg(SpReqAnsContext<HealthManagerService_Q
 		CSmartPointer<IConfigInfo> spCerConfig;
 		ErrorCodeEnum eErrCode = GetFunction()->OpenConfig(Config_CenterSetting, spCerConfig);
 		if (eErrCode == Error_Succeed)
-			spCerConfig->ReadConfigValue(ctx->Req.entityName, ctx->Req.key, str);
+			spCerConfig->ReadConfigValue(ctx->Req.module.GetData(), ctx->Req.key, str);
 		ctx->Ans.value = str;
 		ctx->Answer(Error_Succeed);
 	}