reywechat 1.0.81__py3-none-any.whl → 1.0.83__py3-none-any.whl

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.
reywechat/rdb.py CHANGED
@@ -11,8 +11,8 @@
11
11
 
12
12
  from typing import Literal
13
13
  from json import loads as json_loads
14
- from reydb.rdb import Database
15
14
  from reydb import rorm
15
+ from reydb.rdb import Database
16
16
  from reykit.rbase import throw
17
17
  from reykit.ros import File
18
18
  from reykit.rtime import to_time, time_to, sleep
@@ -39,13 +39,14 @@ class DatabaseTableContactUser(rorm.Model, table=True):
39
39
  Database `contact_user` table model.
40
40
  """
41
41
 
42
+ __name__ = 'contact_user'
42
43
  __comment__ = 'User contact table.'
43
- create_time: rorm.Datetime = rorm.Field(field_default='CURRENT_TIMESTAMP', not_null=True, index_n=True, comment='Record create time.')
44
- update_time: rorm.Datetime = rorm.Field(field_default='ON UPDATE CURRENT_TIMESTAMP', index_n=True, comment='Record update time.')
45
- user_id: str = rorm.Field(field_type=rorm.types.VARCHAR(24), key=True, comment='User ID.')
46
- name: str = rorm.Field(field_type=rorm.types.VARCHAR(32), comment='User name.')
47
- contact: int = rorm.Field(field_type=rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the contact, 0 is no contact, 1 is contact.')
48
- valid: int = rorm.Field(field_type=rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the valid, 0 is invalid, 1 is valid.')
44
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
45
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
46
+ user_id: str = rorm.Field(rorm.types.VARCHAR(24), key=True, comment='User ID.')
47
+ name: str = rorm.Field(rorm.types.VARCHAR(32), comment='User name.')
48
+ contact: int = rorm.Field(rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the contact, 0 is no contact, 1 is contact.')
49
+ valid: int = rorm.Field(rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the valid, 0 is invalid, 1 is valid.')
49
50
 
50
51
 
51
52
  class DatabaseTableContactRoom(rorm.Model, table=True):
@@ -53,13 +54,14 @@ class DatabaseTableContactRoom(rorm.Model, table=True):
53
54
  Database `contact_room` table model.
54
55
  """
55
56
 
57
+ __name__ = 'contact_room'
56
58
  __comment__ = 'Chat room contact table.'
57
- create_time: rorm.Datetime = rorm.Field(field_default='CURRENT_TIMESTAMP', not_null=True, index_n=True, comment='Record create time.')
58
- update_time: rorm.Datetime = rorm.Field(field_default='ON UPDATE CURRENT_TIMESTAMP', index_n=True, comment='Record update time.')
59
- room_id: str = rorm.Field(field_type=rorm.types.VARCHAR(31), key=True, comment='Chat room ID.')
60
- name: str = rorm.Field(field_type=rorm.types.VARCHAR(32), comment='Chat room name.')
61
- contact: int = rorm.Field(field_type=rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the contact, 0 is no contact, 1 is contact.')
62
- valid: int = rorm.Field(field_type=rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the valid, 0 is invalid, 1 is valid.')
59
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
60
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
61
+ room_id: str = rorm.Field(rorm.types.VARCHAR(31), key=True, comment='Chat room ID.')
62
+ name: str = rorm.Field(rorm.types.VARCHAR(32), comment='Chat room name.')
63
+ contact: int = rorm.Field(rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the contact, 0 is no contact, 1 is contact.')
64
+ valid: int = rorm.Field(rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the valid, 0 is invalid, 1 is valid.')
63
65
 
64
66
 
65
67
  class DatabaseTableContactRoomUser(rorm.Model, table=True):
@@ -67,14 +69,15 @@ class DatabaseTableContactRoomUser(rorm.Model, table=True):
67
69
  Database `contact_room_user` table model.
68
70
  """
69
71
 
72
+ __name__ = 'contact_room_user'
70
73
  __comment__ = 'Chat room user contact table.'
71
- create_time: rorm.Datetime = rorm.Field(field_default='CURRENT_TIMESTAMP', not_null=True, index_n=True, comment='Record create time.')
72
- update_time: rorm.Datetime = rorm.Field(field_default='ON UPDATE CURRENT_TIMESTAMP', index_n=True, comment='Record update time.')
73
- room_id: str = rorm.Field(field_type=rorm.types.VARCHAR(31), key=True, comment='Chat room ID.')
74
- user_id: str = rorm.Field(field_type=rorm.types.VARCHAR(24), key=True, comment='Chat room user ID.')
75
- name: str = rorm.Field(field_type=rorm.types.VARCHAR(32), comment='Chat room user name.')
76
- contact: int = rorm.Field(field_type=rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the contact, 0 is no contact, 1 is contact.')
77
- valid: int = rorm.Field(field_type=rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the valid, 0 is invalid, 1 is valid.')
74
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
75
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
76
+ room_id: str = rorm.Field(rorm.types.VARCHAR(31), key=True, comment='Chat room ID.')
77
+ user_id: str = rorm.Field(rorm.types.VARCHAR(24), key=True, comment='Chat room user ID.')
78
+ name: str = rorm.Field(rorm.types.VARCHAR(32), comment='Chat room user name.')
79
+ contact: int = rorm.Field(rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the contact, 0 is no contact, 1 is contact.')
80
+ valid: int = rorm.Field(rorm.types_mysql.TINYINT(unsigned=True), field_default='1', not_null=True, comment='Is the valid, 0 is invalid, 1 is valid.')
78
81
 
79
82
 
80
83
  class DatabaseTableMessageReceive(rorm.Model, table=True):
@@ -82,12 +85,13 @@ class DatabaseTableMessageReceive(rorm.Model, table=True):
82
85
  Database `message_receive` table model.
83
86
  """
84
87
 
88
+ __name__ = 'message_receive'
85
89
  __comment__ = 'Message receive table.'
86
- create_time: rorm.Datetime = rorm.Field(field_default='CURRENT_TIMESTAMP', not_null=True, index_n=True, comment='Record create time.')
90
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
87
91
  message_time: rorm.Datetime = rorm.Field(not_null=True, index_n=True, comment='Message time.')
88
- message_id: int = rorm.Field(field_type=rorm.types_mysql.BIGINT(unsigned=True), key=True, comment='Message UUID.')
89
- room_id: str = rorm.Field(field_type=rorm.types.VARCHAR(31), index_n=True, comment='Message chat room ID, null for private chat.')
90
- user_id: str = rorm.Field(field_type=rorm.types.VARCHAR(24), index_n=True, comment='Message sender user ID, null for system message.')
92
+ message_id: int = rorm.Field(rorm.types_mysql.BIGINT(unsigned=True), key=True, comment='Message UUID.')
93
+ room_id: str = rorm.Field(rorm.types.VARCHAR(31), index_n=True, comment='Message chat room ID, null for private chat.')
94
+ user_id: str = rorm.Field(rorm.types.VARCHAR(24), index_n=True, comment='Message sender user ID, null for system message.')
91
95
  type: int = rorm.Field(
92
96
  field_type=rorm.types_mysql.INTEGER(unsigned=True),
93
97
  not_null=True,
@@ -129,8 +133,8 @@ class DatabaseTableMessageReceive(rorm.Model, table=True):
129
133
  'other omit.'
130
134
  )
131
135
  )
132
- data: str = rorm.Field(field_type=rorm.types.TEXT, not_null=True, comment='Message data.')
133
- file_id: int = rorm.Field(field_type=rorm.types_mysql.MEDIUMINT(unsigned=True), comment='Message file ID, from the file database.')
136
+ data: str = rorm.Field(rorm.types.TEXT, not_null=True, comment='Message data.')
137
+ file_id: int = rorm.Field(rorm.types_mysql.MEDIUMINT(unsigned=True), comment='Message file ID, from the file database.')
134
138
 
135
139
 
136
140
  class DatabaseTableMessageSend(rorm.Model, table=True):
@@ -138,10 +142,11 @@ class DatabaseTableMessageSend(rorm.Model, table=True):
138
142
  Database `message_send` table model.
139
143
  """
140
144
 
145
+ __name__ = 'message_send'
141
146
  __comment__ = 'Message send table.'
142
- create_time: rorm.Datetime = rorm.Field(field_default='CURRENT_TIMESTAMP', not_null=True, index_n=True, comment='Record create time.')
143
- update_time: rorm.Datetime = rorm.Field(field_default='ON UPDATE CURRENT_TIMESTAMP', index_n=True, comment='Record update time.')
144
- send_id: int = rorm.Field(field_type=rorm.types_mysql.INTEGER(unsigned=True), key_auto=True, comment='Send ID.')
147
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
148
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
149
+ send_id: int = rorm.Field(rorm.types_mysql.INTEGER(unsigned=True), key_auto=True, comment='Send ID.')
145
150
  status: int = rorm.Field(
146
151
  field_type=rorm.types_mysql.TINYINT(unsigned=True),
147
152
  not_null=True,
@@ -169,9 +174,9 @@ class DatabaseTableMessageSend(rorm.Model, table=True):
169
174
  '7 is forward message.'
170
175
  )
171
176
  )
172
- receive_id: str = rorm.Field(field_type=rorm.types.VARCHAR(31), not_null=True, index_n=True, comment='Receive to user ID or chat room ID.')
173
- parameter: str = rorm.Field(field_type=rorm.types.JSON, not_null=True, comment='Send parameters.')
174
- file_id: int = rorm.Field(field_type=rorm.types_mysql.MEDIUMINT(unsigned=True), comment='Message file ID, from the file database.')
177
+ receive_id: str = rorm.Field(rorm.types.VARCHAR(31), not_null=True, index_n=True, comment='Receive to user ID or chat room ID.')
178
+ parameter: str = rorm.Field(rorm.types.JSON, not_null=True, comment='Send parameters.')
179
+ file_id: int = rorm.Field(rorm.types_mysql.MEDIUMINT(unsigned=True), comment='Message file ID, from the file database.')
175
180
 
176
181
 
177
182
  class WeChatDatabase(WeChatBase):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reywechat
3
- Version: 1.0.81
3
+ Version: 1.0.83
4
4
  Summary: WeChat method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reywechat/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -3,14 +3,14 @@ reywechat/rall.py,sha256=5J_X-XMOyb1Vp1jyS9-oRFXGOtp2vRPX1g3tJot_Eck,371
3
3
  reywechat/rbase.py,sha256=hbxn5spvcl_C_Bw8A9teulOXT9GMlxUw145_YbXIOzc,1124
4
4
  reywechat/rcache.py,sha256=5FIa8UB3VsLHT_EXHHmFP62a5AeS22anJCJXC8t4tWw,908
5
5
  reywechat/rclient.py,sha256=j4ktgD2l1W9ktrTtfQfyIXCxc7KnT-gvqgy8-zRq8IU,22655
6
- reywechat/rdb.py,sha256=-tZ1xzWKgDnt_sYLNQqmqMigrv8vdWpafJoismO33AA,39942
6
+ reywechat/rdb.py,sha256=EnU7e-o0ZjUbmNi7XVGwPoVH_tX5zd6EB7dDCCaliDc,39778
7
7
  reywechat/rlog.py,sha256=JnzuSfQCKnvASPjZw9KrLTX9TjT79KLbciu8XeIA_88,5256
8
8
  reywechat/rreceive.py,sha256=PjDdbF5tJh-bj2p_DxwYKXfk6dDkmv4s8W77Z1ODE1M,50960
9
9
  reywechat/rsend.py,sha256=m3TvKlmBKK8KTsM85DeWIHbhVTRWbLMetBAU-zBYkAc,20064
10
10
  reywechat/rtrigger.py,sha256=gDnokfFjw29Kz9qazxtb2clT2pBsuOJqIEErvg7L3hE,4986
11
11
  reywechat/rwechat.py,sha256=xOxki5zFq145V-Ii3q8cFnJkCm8joCftgbbekGoCel0,4718
12
12
  reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
13
- reywechat-1.0.81.dist-info/METADATA,sha256=rlyCxhuW3cUbQaXedNeU_phFAohqkXBfZr0amsicEgw,1551
14
- reywechat-1.0.81.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- reywechat-1.0.81.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
- reywechat-1.0.81.dist-info/RECORD,,
13
+ reywechat-1.0.83.dist-info/METADATA,sha256=bkjrROWNWXrqzUX44CZQJnENqIWReqRYC5SZgAzirkQ,1551
14
+ reywechat-1.0.83.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ reywechat-1.0.83.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
+ reywechat-1.0.83.dist-info/RECORD,,