reywechat 1.0.81__py3-none-any.whl → 1.0.82__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
@@ -40,12 +40,12 @@ class DatabaseTableContactUser(rorm.Model, table=True):
40
40
  """
41
41
 
42
42
  __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.')
43
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
44
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
45
+ user_id: str = rorm.Field(rorm.types.VARCHAR(24), key=True, comment='User ID.')
46
+ name: str = rorm.Field(rorm.types.VARCHAR(32), comment='User name.')
47
+ 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.')
48
+ 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
49
 
50
50
 
51
51
  class DatabaseTableContactRoom(rorm.Model, table=True):
@@ -54,12 +54,12 @@ class DatabaseTableContactRoom(rorm.Model, table=True):
54
54
  """
55
55
 
56
56
  __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.')
57
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
58
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
59
+ room_id: str = rorm.Field(rorm.types.VARCHAR(31), key=True, comment='Chat room ID.')
60
+ name: str = rorm.Field(rorm.types.VARCHAR(32), comment='Chat room name.')
61
+ 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.')
62
+ 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
63
 
64
64
 
65
65
  class DatabaseTableContactRoomUser(rorm.Model, table=True):
@@ -68,13 +68,13 @@ class DatabaseTableContactRoomUser(rorm.Model, table=True):
68
68
  """
69
69
 
70
70
  __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.')
71
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
72
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
73
+ room_id: str = rorm.Field(rorm.types.VARCHAR(31), key=True, comment='Chat room ID.')
74
+ user_id: str = rorm.Field(rorm.types.VARCHAR(24), key=True, comment='Chat room user ID.')
75
+ name: str = rorm.Field(rorm.types.VARCHAR(32), comment='Chat room user name.')
76
+ 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.')
77
+ 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
78
 
79
79
 
80
80
  class DatabaseTableMessageReceive(rorm.Model, table=True):
@@ -83,11 +83,11 @@ class DatabaseTableMessageReceive(rorm.Model, table=True):
83
83
  """
84
84
 
85
85
  __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.')
86
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
87
87
  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.')
88
+ message_id: int = rorm.Field(rorm.types_mysql.BIGINT(unsigned=True), key=True, comment='Message UUID.')
89
+ room_id: str = rorm.Field(rorm.types.VARCHAR(31), index_n=True, comment='Message chat room ID, null for private chat.')
90
+ user_id: str = rorm.Field(rorm.types.VARCHAR(24), index_n=True, comment='Message sender user ID, null for system message.')
91
91
  type: int = rorm.Field(
92
92
  field_type=rorm.types_mysql.INTEGER(unsigned=True),
93
93
  not_null=True,
@@ -129,8 +129,8 @@ class DatabaseTableMessageReceive(rorm.Model, table=True):
129
129
  'other omit.'
130
130
  )
131
131
  )
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.')
132
+ data: str = rorm.Field(rorm.types.TEXT, not_null=True, comment='Message data.')
133
+ file_id: int = rorm.Field(rorm.types_mysql.MEDIUMINT(unsigned=True), comment='Message file ID, from the file database.')
134
134
 
135
135
 
136
136
  class DatabaseTableMessageSend(rorm.Model, table=True):
@@ -139,9 +139,9 @@ class DatabaseTableMessageSend(rorm.Model, table=True):
139
139
  """
140
140
 
141
141
  __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.')
142
+ create_time: rorm.Datetime = rorm.Field(field_default=':create_time', not_null=True, index_n=True, comment='Record create time.')
143
+ update_time: rorm.Datetime = rorm.Field(field_default=':update_time', index_n=True, comment='Record update time.')
144
+ send_id: int = rorm.Field(rorm.types_mysql.INTEGER(unsigned=True), key_auto=True, comment='Send ID.')
145
145
  status: int = rorm.Field(
146
146
  field_type=rorm.types_mysql.TINYINT(unsigned=True),
147
147
  not_null=True,
@@ -169,9 +169,9 @@ class DatabaseTableMessageSend(rorm.Model, table=True):
169
169
  '7 is forward message.'
170
170
  )
171
171
  )
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.')
172
+ receive_id: str = rorm.Field(rorm.types.VARCHAR(31), not_null=True, index_n=True, comment='Receive to user ID or chat room ID.')
173
+ parameter: str = rorm.Field(rorm.types.JSON, not_null=True, comment='Send parameters.')
174
+ file_id: int = rorm.Field(rorm.types_mysql.MEDIUMINT(unsigned=True), comment='Message file ID, from the file database.')
175
175
 
176
176
 
177
177
  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.82
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=L6UIhURqGh5uool2yoZEgnz24Ta1KhGs9nVqzaOL4qw,39615
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.82.dist-info/METADATA,sha256=2FDyDW-eS1lJsTvly9Fquo1U5UUo9YXgxcMtNX2QmRY,1551
14
+ reywechat-1.0.82.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ reywechat-1.0.82.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
+ reywechat-1.0.82.dist-info/RECORD,,