hk-cdp 1.0.88__tar.gz → 1.0.89__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/PKG-INFO +1 -1
  2. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/analysis/__init__.py +1 -1
  3. hk_cdp-1.0.89/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py +53 -0
  4. hk_cdp-1.0.89/hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py +66 -0
  5. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/analysis/analysis_report_model.py +1 -1
  6. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp.egg-info/PKG-INFO +1 -1
  7. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp.egg-info/SOURCES.txt +2 -0
  8. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/setup.py +1 -1
  9. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/README.md +0 -0
  10. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/__init__.py +0 -0
  11. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/handler/__init__.py +0 -0
  12. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/handler/cdp_base.py +0 -0
  13. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/libs/__init__.py +0 -0
  14. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/libs/customize/__init__.py +0 -0
  15. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/libs/customize/asset_base_model.py +0 -0
  16. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/libs/customize/cdp_helper.py +0 -0
  17. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
  18. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
  19. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/libs/customize/work_base_model.py +0 -0
  20. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/__init__.py +0 -0
  21. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/cdp_model.py +0 -0
  22. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/__init__.py +0 -0
  23. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/cap/__init__.py +0 -0
  24. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
  25. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
  26. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
  27. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
  28. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
  29. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/member/__init__.py +0 -0
  30. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
  31. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
  32. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
  33. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
  34. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
  35. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
  36. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
  37. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
  38. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/queue/__init__.py +0 -0
  39. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
  40. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
  41. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
  42. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
  43. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
  44. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
  45. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
  46. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/store/__init__.py +0 -0
  47. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
  48. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
  49. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
  50. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/sync/__init__.py +0 -0
  51. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
  52. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
  53. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
  54. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
  55. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
  56. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
  57. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
  58. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/trade/__init__.py +0 -0
  59. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
  60. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
  61. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
  62. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
  63. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/tt/__init__.py +0 -0
  64. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
  65. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
  66. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
  67. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
  68. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
  69. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/user/__init__.py +0 -0
  70. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
  71. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
  72. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
  73. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp/models/enum.py +0 -0
  74. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp.egg-info/dependency_links.txt +0 -0
  75. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp.egg-info/requires.txt +0 -0
  76. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/hk_cdp.egg-info/top_level.txt +0 -0
  77. {hk_cdp-1.0.88 → hk_cdp-1.0.89}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hk_cdp
3
- Version: 1.0.88
3
+ Version: 1.0.89
4
4
  Summary: hk cdp
5
5
  Home-page: http://gitlab.tdtech.gao7.com/newfire/hk_cap/hk_cdp/server/hk_cdp.git
6
6
  Author: seven
@@ -6,4 +6,4 @@
6
6
  @LastEditors: HuangJianYi
7
7
  @Description:
8
8
  """
9
- __all__ = ["analysis_report_model"]
9
+ __all__ = ["analysis_report_model", "analysis_goods_related_model", "analysis_goods_repurchase_model"]
@@ -0,0 +1,53 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ @Author: HuangJianYi
4
+ @Date: 2024-10-15 18:30:21
5
+ @LastEditTime: 2025-07-15 17:20:19
6
+ @LastEditors: HuangJianYi
7
+ @Description:
8
+ """
9
+ from seven_framework.mysql import MySQLHelper
10
+ from seven_framework.base_model import *
11
+ from seven_cloudapp_frame.models.cache_model import *
12
+
13
+
14
+ class AnalysisGoodsRelatedModel(CacheModel):
15
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
16
+ super(AnalysisGoodsRelatedModel, self).__init__(AnalysisGoodsRelated, sub_table)
17
+ if not db_config_dict:
18
+ db_config_dict = config.get_value(db_connect_key)
19
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
20
+ self.db_connect_key = db_connect_key
21
+ self.db_transaction = db_transaction
22
+ self.db.context = context
23
+
24
+ # 方法扩展请继承此类
25
+
26
+
27
+ class AnalysisGoodsRelated:
28
+ def __init__(self):
29
+ self.id = 0 # 唯一键,根据业务md5int生成
30
+ self.business_id = 0 # 商家标识
31
+ self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东 4-微信)
32
+ self.store_id = 0 # 店铺标识
33
+ self.a_goods_id = '' # A商品ID
34
+ self.a_buyer_count = 0 # 购买A商品人数
35
+ self.b_goods_id = '' # B商品ID
36
+ self.b_buyer_count = 0 # 购买B商品人数
37
+ self.a_and_b_buyer_count = 0 # 同时购买A和B人数
38
+ self.buy_rate = 0 # 购买连带率
39
+ self.recommend_buyer_count = 0 # 可推荐人数
40
+ self.rank_num = 0 # 排行号
41
+ self.stat_date = 0 # 统计时间(20241231)
42
+ self.create_date = '1970-01-01 00:00:00.000' # 创建时间
43
+
44
+ @classmethod
45
+ def get_field_list(self):
46
+ return ['id', 'business_id', 'platform_id', 'store_id', 'a_goods_id', 'a_buyer_count', 'b_goods_id', 'b_buyer_count', 'a_and_b_buyer_count', 'buy_rate', 'recommend_buyer_count', 'rank_num', 'stat_date', 'create_date']
47
+
48
+ @classmethod
49
+ def get_primary_key(self):
50
+ return "id"
51
+
52
+ def __str__(self):
53
+ return "analysis_goods_related_tb"
@@ -0,0 +1,66 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ @Author: HuangJianYi
4
+ @Date: 2024-12-31 11:25:23
5
+ @LastEditTime: 2025-07-15 17:27:35
6
+ @LastEditors: HuangJianYi
7
+ @Description:
8
+ """
9
+ # -*- coding: utf-8 -*-
10
+ """
11
+ @Author: HuangJianYi
12
+ @Date: 2024-10-15 18:30:21
13
+ @LastEditTime: 2025-07-11 10:31:39
14
+ @LastEditors: HuangJianYi
15
+ @Description:
16
+ """
17
+ from seven_framework.mysql import MySQLHelper
18
+ from seven_framework.base_model import *
19
+ from seven_cloudapp_frame.models.cache_model import *
20
+
21
+
22
+ class AnalysisGoodsRepurchaseModel(CacheModel):
23
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
24
+ super(AnalysisGoodsRepurchaseModel, self).__init__(AnalysisGoodsRepurchase, sub_table)
25
+ if not db_config_dict:
26
+ db_config_dict = config.get_value(db_connect_key)
27
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
28
+ self.db_connect_key = db_connect_key
29
+ self.db_transaction = db_transaction
30
+ self.db.context = context
31
+
32
+ # 方法扩展请继承此类
33
+
34
+
35
+ class AnalysisGoodsRepurchase:
36
+ def __init__(self):
37
+ self.id = 0 # 唯一键,根据业务md5int生成
38
+ self.business_id = 0 # 商家标识
39
+ self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东 4-微信)
40
+ self.store_id = 0 # 店铺标识
41
+ self.goods_id = '' # 商品ID
42
+ self.total_sales = 0 # 总销量
43
+ self.buyer_count = 0 # 购买人数
44
+ self.repurchase_count = 0 # 复购人数
45
+ self.repurchase_rate = 0 # 复购率
46
+ self.avg_purchase_times = 0 # 人均购买次数
47
+ self.avg_repurchase_cycle = 0 # 平均复购周期(天)
48
+ self.today_expired_count = 0 # 今日到期未购买人数
49
+ self.recent_7days_expired_count = 0 # 近7日到期未购买人数
50
+ self.stat_date = 0 # 统计时间(20241231)
51
+ self.modify_date = '1970-01-01 00:00:00.000' # 创建时间
52
+
53
+ @classmethod
54
+ def get_field_list(self):
55
+ return [
56
+ 'id', 'business_id', 'platform_id', 'store_id',
57
+ 'scheme_id', 'cycle_type', 'report_type',
58
+ 'stat_date', 'report_data', 'modify_date'
59
+ ]
60
+
61
+ @classmethod
62
+ def get_primary_key(self):
63
+ return "id"
64
+
65
+ def __str__(self):
66
+ return "analysis_goods_repurchase_tb"
@@ -34,7 +34,7 @@ class AnalysisReport:
34
34
  def __init__(self):
35
35
  self.id = 0 # 唯一键,根据业务md5int生成
36
36
  self.business_id = 0 # 商家标识
37
- self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东)
37
+ self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东 4-微信)
38
38
  self.store_id = 0 # 店铺标识
39
39
  self.scheme_id = 0 # 会员体系标识
40
40
  self.cycle_type = 2 # 周期类型(1-年 2-月 3-日)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hk-cdp
3
- Version: 1.0.88
3
+ Version: 1.0.89
4
4
  Summary: hk cdp
5
5
  Home-page: http://gitlab.tdtech.gao7.com/newfire/hk_cap/hk_cdp/server/hk_cdp.git
6
6
  Author: seven
@@ -20,6 +20,8 @@ hk_cdp/models/cdp_model.py
20
20
  hk_cdp/models/enum.py
21
21
  hk_cdp/models/db_models/__init__.py
22
22
  hk_cdp/models/db_models/analysis/__init__.py
23
+ hk_cdp/models/db_models/analysis/analysis_goods_related_model.py
24
+ hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py
23
25
  hk_cdp/models/db_models/analysis/analysis_report_model.py
24
26
  hk_cdp/models/db_models/cap/__init__.py
25
27
  hk_cdp/models/db_models/cap/cap_business_info_model.py
@@ -14,7 +14,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
14
14
 
15
15
  setup(
16
16
  name="hk_cdp",
17
- version="1.0.88",
17
+ version="1.0.89",
18
18
  author="seven",
19
19
  author_email="tech@gao7.com",
20
20
  description="hk cdp",
File without changes
File without changes
File without changes
File without changes
File without changes