intro pymongo

This commit is contained in:
耿伦伦
2021-11-29 18:27:02 +08:00
parent 3fc3035cdf
commit 3f608c3510
30 changed files with 37974 additions and 95 deletions

View File

@ -7,5 +7,8 @@ class GiftMessage(Base):
def __init__(self):
self.instance = message_pb2.GiftMessage()
def format_content(self):
return self.instance.common.describe
def __str__(self):
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【送礼】' + self.instance.common.describe
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【送礼】' + self.format_content()