From ba5cebb38ee2cc0de163a21e9c9f4e849b3fc121 Mon Sep 17 00:00:00 2001 From: Basyc <12016870+basyc@user.noreply.gitee.com> Date: Sun, 5 Jan 2025 13:07:34 +0000 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4part4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Basyc <12016870+basyc@user.noreply.gitee.com> --- mooc/schemas/coupon_location.py | 38 ++++ mooc/schemas/cover_reply.py | 24 +++ mooc/schemas/custom_reply.py | 20 ++ mooc/schemas/images_reply.py | 20 ++ mooc/schemas/mc.py | 322 +++++++++++++++++++++++++++++ mooc/schemas/menu_event.py | 21 ++ mooc/schemas/message_notice_log.py | 24 +++ mooc/schemas/mobile_number.py | 18 ++ mooc/schemas/modules.py | 190 +++++++++++++++++ mooc/schemas/music_reply.py | 17 ++ mooc/schemas/news_reply.py | 24 +++ mooc/schemas/phoneapp_versions.py | 17 ++ mooc/schemas/profile_fields.py | 67 ++++++ mooc/schemas/rule.py | 18 ++ mooc/schemas/rule_Keyword.py | 19 ++ 15 files changed, 839 insertions(+) create mode 100644 mooc/schemas/coupon_location.py create mode 100644 mooc/schemas/cover_reply.py create mode 100644 mooc/schemas/custom_reply.py create mode 100644 mooc/schemas/images_reply.py create mode 100644 mooc/schemas/mc.py create mode 100644 mooc/schemas/menu_event.py create mode 100644 mooc/schemas/message_notice_log.py create mode 100644 mooc/schemas/mobile_number.py create mode 100644 mooc/schemas/modules.py create mode 100644 mooc/schemas/music_reply.py create mode 100644 mooc/schemas/news_reply.py create mode 100644 mooc/schemas/phoneapp_versions.py create mode 100644 mooc/schemas/profile_fields.py create mode 100644 mooc/schemas/rule.py create mode 100644 mooc/schemas/rule_Keyword.py diff --git a/mooc/schemas/coupon_location.py b/mooc/schemas/coupon_location.py new file mode 100644 index 0000000..49bbb8d --- /dev/null +++ b/mooc/schemas/coupon_location.py @@ -0,0 +1,38 @@ +from pydantic import BaseModel + +class CouponLocationBase(BaseModel): + uniacid: int + acid: int + sid: int + location_id: int + business_name: str + branch_name: str + category: str + province: str + city: str + district: str + address: str + longitude: str + latitude: str + telephone: str + photo_list: str + avg_price: int + open_time: str + recommend: str + special: str + introduction: str + offset_type: int + status: int + message: str + +class CouponLocationCreate(CouponLocationBase): + pass + +class CouponLocationUpdate(CouponLocationBase): + pass + +class CouponLocation(CouponLocationBase): + id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/cover_reply.py b/mooc/schemas/cover_reply.py new file mode 100644 index 0000000..0824f5f --- /dev/null +++ b/mooc/schemas/cover_reply.py @@ -0,0 +1,24 @@ +from pydantic import BaseModel + +class CoverReplyBase(BaseModel): + uniacid: int + multiid: int + rid: int + module: str + do: str + title: str + description: str + thumb: str + url: str + +class CoverReplyCreate(CoverReplyBase): + pass + +class CoverReplyUpdate(CoverReplyBase): + pass + +class CoverReply(CoverReplyBase): + id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/custom_reply.py b/mooc/schemas/custom_reply.py new file mode 100644 index 0000000..8b9b3cb --- /dev/null +++ b/mooc/schemas/custom_reply.py @@ -0,0 +1,20 @@ +from pydantic import BaseModel + +class CustomReplyBase(BaseModel): + rid: int + start1: int + end1: int + start2: int + end2: int + +class CustomReplyCreate(CustomReplyBase): + pass + +class CustomReplyUpdate(CustomReplyBase): + pass + +class CustomReply(CustomReplyBase): + id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/images_reply.py b/mooc/schemas/images_reply.py new file mode 100644 index 0000000..72d2eb7 --- /dev/null +++ b/mooc/schemas/images_reply.py @@ -0,0 +1,20 @@ +from pydantic import BaseModel + +class ImagesReplyBase(BaseModel): + rid: int + title: str + description: str + mediaid: str + createtime: int + +class ImagesReplyCreate(ImagesReplyBase): + pass + +class ImagesReplyUpdate(ImagesReplyBase): + pass + +class ImagesReply(ImagesReplyBase): + id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/mc.py b/mooc/schemas/mc.py new file mode 100644 index 0000000..4a054c0 --- /dev/null +++ b/mooc/schemas/mc.py @@ -0,0 +1,322 @@ +from pydantic import BaseModel + +class McCreditsRechargeBase(BaseModel): + uniacid: int + uid: int + openid: str + tid: str + transid: str + fee: float + type: str + tag: str + status: int + createtime: int + backtype: int + +class McCreditsRechargeCreate(McCreditsRechargeBase): + pass + +class McCreditsRechargeUpdate(McCreditsRechargeBase): + pass + +class McCreditsRecharge(McCreditsRechargeBase): + id: int + + class Config: + orm_mode = True + +class McCreditsRecordBase(BaseModel): + uid: int + uniacid: int + credittype: str + num: float + operator: int + module: str + clerk_id: int + store_id: int + clerk_type: int + createtime: int + remark: str + real_uniacid: int + +class McCreditsRecordCreate(McCreditsRecordBase): + pass + +class McCreditsRecordUpdate(McCreditsRecordBase): + pass + +class McCreditsRecord(McCreditsRecordBase): + id: int + + class Config: + orm_mode = True + +class MCFansGroupsBase(BaseModel): + uniacid: int + acid: int + groups: str + +class MCFansGroupsCreate(MCFansGroupsBase): + pass + +class MCFansGroupsUpdate(MCFansGroupsBase): + pass + +class MCFansGroups(MCFansGroupsBase): + id: int + + class Config: + orm_mode = True + +class MCFansTagBase(BaseModel): + uniacid: int | None = None + fanid: int + openid: str + subscribe: int | None = None + nickname: str | None = None + sex: int | None = None + language: str | None = None + city: str | None = None + province: str | None = None + country: str | None = None + headimgurl: str | None = None + subscribe_time: int + unionid: str | None = None + remark: str | None = None + groupid: str | None = None + tagid_list: str | None = None + subscribe_scene: str | None = None + qr_scene_str: str | None = None + qr_scene: str | None = None + +class MCFansTagCreate(MCFansTagBase): + pass + +class MCFansTagUpdate(MCFansTagBase): + pass + +class MCFansTag(MCFansTagBase): + id: int + + class Config: + orm_mode = True +class McChatsRecordBase(BaseModel): + uniacid: int + acid: int + flag: int + openid: str + msgtype: str + content: str + createtime: int + +class McChatsRecordCreate(McChatsRecordBase): + pass + +class McChatsRecordUpdate(McChatsRecordBase): + pass + +class McChatsRecord(McChatsRecordBase): + id: int + + class Config: + orm_mode = True + +class MCFansTagMappingBase(BaseModel): + fanid: int + tagid: str + +class MCFansTagMappingCreate(MCFansTagMappingBase): + pass + +class MCFansTagMappingUpdate(MCFansTagMappingBase): + pass + +class MCFansTagMapping(MCFansTagMappingBase): + id: int + + class Config: + orm_mode = True + +class MCGroupsBase(BaseModel): + uniacid: int + title: str + credit: int + isdefault: int + +class MCGroupsCreate(MCGroupsBase): + pass + +class MCGroupsUpdate(MCGroupsBase): + pass + +class MCGroups(MCGroupsBase): + groupid: int + + class Config: + orm_mode = True + +class MCHandselBase(BaseModel): + uniacid: int + touid: int + fromuid: str + module: str + sign: str + action: str + credit_value: int + createtime: int + +class MCHandselCreate(MCHandselBase): + pass + +class MCHandselUpdate(MCHandselBase): + pass + +class MCHandsel(MCHandselBase): + id: int + + class Config: + orm_mode = True + +class McMembersBase(BaseModel): + uniacid: int + mobile: str + email: str + password: str + salt: str + groupid: int + credit1: float + credit2: float + credit3: float + credit4: float + credit5: float + credit6: float + createtime: int + realname: str + nickname: str + avatar: str + qq: str + vip: int + gender: int + birthyear: int + birthmonth: int + birthday: int + constellation: str + zodiac: str + telephone: str + idcard: str + studentid: str + grade: str + address: str + zipcode: str + nationality: str + resideprovince: str + residecity: str + residedist: str + graduateschool: str + company: str + education: str + occupation: str + position: str + revenue: str + affectivestatus: str + lookingfor: str + bloodtype: str + height: str + weight: str + alipay: str + msn: str + taobao: str + site: str + bio: str + interest: str + pay_password: str + user_from: int + +class McMembersCreate(McMembersBase): + pass + +class McMembersUpdate(McMembersBase): + pass + +class McMembers(McMembersBase): + uid: int + + class Config: + orm_mode = True + +class McMemberAddressBase(BaseModel): + uniacid: int + uid: int + username: str + mobile: str + zipcode: str + province: str + city: str + district: str + address: str + isdefault: bool + +class McMemberAddressCreate(McMemberAddressBase): + pass + +class McMemberAddressUpdate(McMemberAddressBase): + pass + +class McMemberAddress(McMemberAddressBase): + id: int + + class Config: + orm_mode = True + +class McMemberFieldsBase(BaseModel): + uniacid: int + fieldid: int + title: str + available: bool + displayorder: int + +class McMemberFieldsCreate(McMemberFieldsBase): + pass + +class McMemberFieldsUpdate(McMemberFieldsBase): + pass + +class McMemberFields(McMemberFieldsBase): + id: int + + class Config: + orm_mode = True + +class McMemberPropertyBase(BaseModel): + uniacid: int + property: str + +class McMemberPropertyCreate(McMemberPropertyBase): + pass + +class McMemberPropertyUpdate(McMemberPropertyBase): + pass + +class McMemberProperty(McMemberPropertyBase): + id: int + + class Config: + orm_mode = True + +class McOauthFansBase(BaseModel): + oauth_openid: str + acid: int + uid: int + openid: str + +class McOauthFansCreate(McOauthFansBase): + pass + +class McOauthFansUpdate(McOauthFansBase): + pass + +class McOauthFans(McOauthFansBase): + id: int + + class Config: + orm_mode = True diff --git a/mooc/schemas/menu_event.py b/mooc/schemas/menu_event.py new file mode 100644 index 0000000..ced2f7b --- /dev/null +++ b/mooc/schemas/menu_event.py @@ -0,0 +1,21 @@ +from pydantic import BaseModel + +class MenuEventBase(BaseModel): + uniacid: int + keyword: str + type: str + picmd5: str + openid: str + createtime: int + +class MenuEventCreate(MenuEventBase): + pass + +class MenuEventUpdate(MenuEventBase): + pass + +class MenuEvent(MenuEventBase): + id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/message_notice_log.py b/mooc/schemas/message_notice_log.py new file mode 100644 index 0000000..df184dd --- /dev/null +++ b/mooc/schemas/message_notice_log.py @@ -0,0 +1,24 @@ +from pydantic import BaseModel + +class MessageNoticeLogBase(BaseModel): + message: str + is_read: int + uid: int + sign: str + type: int + status: int | None = None + create_time: int + end_time: int + url: str + +class MessageNoticeLogCreate(MessageNoticeLogBase): + pass + +class MessageNoticeLogUpdate(MessageNoticeLogBase): + pass + +class MessageNoticeLog(MessageNoticeLogBase): + id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/mobile_number.py b/mooc/schemas/mobile_number.py new file mode 100644 index 0000000..3d9766b --- /dev/null +++ b/mooc/schemas/mobile_number.py @@ -0,0 +1,18 @@ +from pydantic import BaseModel + +class MobilenumberBase(BaseModel): + rid: int + enabled: int + dateline: int | None = None + +class MobilenumberCreate(MobilenumberBase): + pass + +class MobilenumberUpdate(MobilenumberBase): + pass + +class Mobilenumber(MobilenumberBase): + id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/modules.py b/mooc/schemas/modules.py new file mode 100644 index 0000000..d520fa8 --- /dev/null +++ b/mooc/schemas/modules.py @@ -0,0 +1,190 @@ +from pydantic import BaseModel + +class IMSModulesBindingsBase(BaseModel): + module: str + entry: str + call: str + title: str + do: str + state: str + direct: int + url: str + icon: str + displayorder: int + multilevel: bool + parent: str + +class IMSModulesBindingsCreate(IMSModulesBindingsBase): + pass + +class IMSModulesBindings(IMSModulesBindingsBase): + eid: int + + class Config: + orm_mode = True + +class IMSModulesCloudBase(BaseModel): + name: str + application_type: int + title: str + title_initial: str + logo: str + version: str + install_status: int + account_support: int + wxapp_support: int + webapp_support: int + phoneapp_support: int + welcome_support: int + main_module_name: str + main_module_logo: str + has_new_version: bool + has_new_branch: bool + is_ban: int + lastupdatetime: int + xzapp_support: bool + cloud_id: int + aliapp_support: bool + baiduapp_support: bool + toutiaoapp_support: bool + buytime: int + module_status: bool + +class IMSModulesCloudCreate(IMSModulesCloudBase): + pass + +class IMSModulesCloud(IMSModulesCloudBase): + id: int + + class Config: + orm_mode = True + +class ModulesBase(BaseModel): + name: str + application_type: int + type: str + title: str + version: str + ability: str + description: str + author: str + url: str + settings: int + subscribes: str + handles: str + isrulefields: int + issystem: int + target: int + iscard: int + permissions: str + title_initial: str + wxapp_support: int + welcome_support: int + oauth_type: int + webapp_support: int + phoneapp_support: int + account_support: int + xzapp_support: int + aliapp_support: int + logo: str + baiduapp_support: int + toutiaoapp_support: int + from_: str + cloud_record: int + sections: int + +class ModulesCreate(ModulesBase): + pass + +class ModulesUpdate(ModulesBase): + pass + +class Modules(ModulesBase): + mid: int + + class Config: + orm_mode = True + + +class IMSModulesIgnoreBase(BaseModel): + name: str + version: str + +class IMSModulesIgnoreCreate(IMSModulesIgnoreBase): + pass + +class IMSModulesIgnore(IMSModulesIgnoreBase): + id: int + + class Config: + orm_mode = True + + +class IMSModulesPluginBase(BaseModel): + name: str | None = None + main_module: str | None = None + +class IMSModulesPluginCreate(IMSModulesPluginBase): + pass + +class IMSModulesPlugin(IMSModulesPluginBase): + id: int + + class Config: + orm_mode = True + + +class IMSModulesPluginRankBase(BaseModel): + uniacid: int + uid: int + rank: int + plugin_name: str + main_module_name: str + +class IMSModulesPluginRankCreate(IMSModulesPluginRankBase): + pass + +class IMSModulesPluginRank(IMSModulesPluginRankBase): + id: int + + class Config: + orm_mode = True + + +class IMSModulesRankBase(BaseModel): + module_name: str + uid: int + rank: int + uniacid: int + +class IMSModulesRankCreate(IMSModulesRankBase): + pass + +class IMSModulesRank(IMSModulesRankBase): + id: int + + class Config: + orm_mode = True + + +class IMSModulesRecycleBase(BaseModel): + name: str + type: int + account_support: bool + wxapp_support: bool + welcome_support: bool + webapp_support: bool + phoneapp_support: bool + xzapp_support: bool + aliapp_support: bool + baiduapp_support: bool + toutiaoapp_support: bool + +class IMSModulesRecycleCreate(IMSModulesRecycleBase): + pass + +class IMSModulesRecycle(IMSModulesRecycleBase): + id: int + + class Config: + orm_mode = True diff --git a/mooc/schemas/music_reply.py b/mooc/schemas/music_reply.py new file mode 100644 index 0000000..0610ec3 --- /dev/null +++ b/mooc/schemas/music_reply.py @@ -0,0 +1,17 @@ +from pydantic import BaseModel + +class MusicReplyBase(BaseModel): + Rid: int + Title: str + Description: str + Url: str + Hqurl: str + +class MusicReplyCreate(MusicReplyBase): + pass + +class MusicReply(MusicReplyBase): + Id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/news_reply.py b/mooc/schemas/news_reply.py new file mode 100644 index 0000000..dee066e --- /dev/null +++ b/mooc/schemas/news_reply.py @@ -0,0 +1,24 @@ +from pydantic import BaseModel + +class NewsReplyBase(BaseModel): + Rid: int + ParentId: int + Title: str + Author: str + Description: str + Thumb: str + Content: str + Url: str + Displayorder: int + Incontent: bool + Createtime: int + MediaId: str + +class NewsReplyCreate(NewsReplyBase): + pass + +class NewsReply(NewsReplyBase): + Id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/phoneapp_versions.py b/mooc/schemas/phoneapp_versions.py new file mode 100644 index 0000000..9d6ea77 --- /dev/null +++ b/mooc/schemas/phoneapp_versions.py @@ -0,0 +1,17 @@ +from pydantic import BaseModel + +class PhoneappVersionsBase(BaseModel): + Uniacid: int + Version: str + Description: str + Modules: str + Createtime: int + +class PhoneappVersionsCreate(PhoneappVersionsBase): + pass + +class PhoneappVersions(PhoneappVersionsBase): + Id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/profile_fields.py b/mooc/schemas/profile_fields.py new file mode 100644 index 0000000..e065cfb --- /dev/null +++ b/mooc/schemas/profile_fields.py @@ -0,0 +1,67 @@ +from pydantic import BaseModel + +class ProfileFieldsBase(BaseModel): + Field: str + Available: int + Title: str + Description: str + Displayorder: int + Required: int + Unchangeable: int + Showinregister: int + FieldLength: int + +class ProfileFieldsCreate(ProfileFieldsBase): + pass + +class ProfileFields(ProfileFieldsBase): + Id: int + + class Config: + orm_mode = True + +class QrcodeBase(BaseModel): + Uniacid: int + Acid: int + Type: str + Extra: int + Qrcid: int + SceneStr: str + Name: str + Keyword: str + Model: int + Ticket: str + Url: str + Expire: int + Subnum: int + Createtime: int + Status: int + +class QrcodeCreate(QrcodeBase): + pass + +class Qrcode(QrcodeBase): + Id: int + + class Config: + orm_mode = True + +class QrcodeStatBase(BaseModel): + Uniacid: int + Acid: int + Qid: int + Openid: str + Type: int + Qrcid: int + SceneStr: str + Name: str + Createtime: int + +class QrcodeStatCreate(QrcodeStatBase): + pass + +class QrcodeStat(QrcodeStatBase): + Id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/rule.py b/mooc/schemas/rule.py new file mode 100644 index 0000000..36af476 --- /dev/null +++ b/mooc/schemas/rule.py @@ -0,0 +1,18 @@ +from pydantic import BaseModel + +class RuleBase(BaseModel): + Uniacid: int + Name: str + Module: str + Displayorder: int + Status: int + Containtype: str + +class RuleCreate(RuleBase): + pass + +class Rule(RuleBase): + Id: int + + class Config: + orm_mode = True \ No newline at end of file diff --git a/mooc/schemas/rule_Keyword.py b/mooc/schemas/rule_Keyword.py new file mode 100644 index 0000000..a0d84ad --- /dev/null +++ b/mooc/schemas/rule_Keyword.py @@ -0,0 +1,19 @@ +from pydantic import BaseModel + +class RuleKeywordBase(BaseModel): + Rid: int + Uniacid: int + Module: str + Content: str + Type: int + Displayorder: int + Status: int + +class RuleKeywordCreate(RuleKeywordBase): + pass + +class RuleKeyword(RuleKeywordBase): + Id: int + + class Config: + orm_mode = True \ No newline at end of file