From 07027d071f18d1275c7b129bddb767476c6b747b Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Mon, 11 May 2026 17:54:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {include => apps/endpoint/include}/endpoint.hrl | 0 apps/endpoint/rebar.config | 1 - {include => apps/iot/include}/domain_model.hrl | 0 {include => apps/iot/include}/iot.hrl | 0 {include => apps/iot/include}/iot_tables.hrl | 0 {include => apps/iot/include}/protocol.hrl | 0 apps/iot/rebar.config | 1 - apps/iot/src/devtools/endpoint_kafka_test.erl | 2 +- apps/iot/src/http/endpoint_handler.erl | 2 +- apps/iot/src/simulator/simulator_api_handler.erl | 2 +- 10 files changed, 3 insertions(+), 5 deletions(-) rename {include => apps/endpoint/include}/endpoint.hrl (100%) delete mode 100644 apps/endpoint/rebar.config rename {include => apps/iot/include}/domain_model.hrl (100%) rename {include => apps/iot/include}/iot.hrl (100%) rename {include => apps/iot/include}/iot_tables.hrl (100%) rename {include => apps/iot/include}/protocol.hrl (100%) delete mode 100644 apps/iot/rebar.config diff --git a/include/endpoint.hrl b/apps/endpoint/include/endpoint.hrl similarity index 100% rename from include/endpoint.hrl rename to apps/endpoint/include/endpoint.hrl diff --git a/apps/endpoint/rebar.config b/apps/endpoint/rebar.config deleted file mode 100644 index 4f604c6..0000000 --- a/apps/endpoint/rebar.config +++ /dev/null @@ -1 +0,0 @@ -{erl_opts, [debug_info, {i, "include"}, {i, "../../include"}, {i, "../../../include"}]}. diff --git a/include/domain_model.hrl b/apps/iot/include/domain_model.hrl similarity index 100% rename from include/domain_model.hrl rename to apps/iot/include/domain_model.hrl diff --git a/include/iot.hrl b/apps/iot/include/iot.hrl similarity index 100% rename from include/iot.hrl rename to apps/iot/include/iot.hrl diff --git a/include/iot_tables.hrl b/apps/iot/include/iot_tables.hrl similarity index 100% rename from include/iot_tables.hrl rename to apps/iot/include/iot_tables.hrl diff --git a/include/protocol.hrl b/apps/iot/include/protocol.hrl similarity index 100% rename from include/protocol.hrl rename to apps/iot/include/protocol.hrl diff --git a/apps/iot/rebar.config b/apps/iot/rebar.config deleted file mode 100644 index 4f604c6..0000000 --- a/apps/iot/rebar.config +++ /dev/null @@ -1 +0,0 @@ -{erl_opts, [debug_info, {i, "include"}, {i, "../../include"}, {i, "../../../include"}]}. diff --git a/apps/iot/src/devtools/endpoint_kafka_test.erl b/apps/iot/src/devtools/endpoint_kafka_test.erl index 2912d2d..0baf85b 100644 --- a/apps/iot/src/devtools/endpoint_kafka_test.erl +++ b/apps/iot/src/devtools/endpoint_kafka_test.erl @@ -8,7 +8,7 @@ %%%------------------------------------------------------------------- -module(endpoint_kafka_test). -author("anlicheng"). --include("endpoint.hrl"). +-include_lib("endpoint/include/endpoint.hrl"). %% API -export([start_manual/0, test_consumer/0]). diff --git a/apps/iot/src/http/endpoint_handler.erl b/apps/iot/src/http/endpoint_handler.erl index dc4ce9c..d500bba 100644 --- a/apps/iot/src/http/endpoint_handler.erl +++ b/apps/iot/src/http/endpoint_handler.erl @@ -8,7 +8,7 @@ %%%------------------------------------------------------------------- -module(endpoint_handler). -author("licheng5"). --include("endpoint.hrl"). +-include_lib("endpoint/include/endpoint.hrl"). %% API -export([handle_request/4]). diff --git a/apps/iot/src/simulator/simulator_api_handler.erl b/apps/iot/src/simulator/simulator_api_handler.erl index f9be473..3605823 100644 --- a/apps/iot/src/simulator/simulator_api_handler.erl +++ b/apps/iot/src/simulator/simulator_api_handler.erl @@ -6,7 +6,7 @@ %%%------------------------------------------------------------------- -module(simulator_api_handler). --include("endpoint.hrl"). +-include_lib("endpoint/include/endpoint.hrl"). -export([handle_request/4]).