提交part4
Signed-off-by: Basyc <12016870+basyc@user.noreply.gitee.com>
This commit is contained in:
parent
f4fc85872e
commit
ba5cebb38e
38
mooc/schemas/coupon_location.py
Normal file
38
mooc/schemas/coupon_location.py
Normal file
@ -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
|
24
mooc/schemas/cover_reply.py
Normal file
24
mooc/schemas/cover_reply.py
Normal file
@ -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
|
20
mooc/schemas/custom_reply.py
Normal file
20
mooc/schemas/custom_reply.py
Normal file
@ -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
|
20
mooc/schemas/images_reply.py
Normal file
20
mooc/schemas/images_reply.py
Normal file
@ -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
|
322
mooc/schemas/mc.py
Normal file
322
mooc/schemas/mc.py
Normal file
@ -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
|
21
mooc/schemas/menu_event.py
Normal file
21
mooc/schemas/menu_event.py
Normal file
@ -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
|
24
mooc/schemas/message_notice_log.py
Normal file
24
mooc/schemas/message_notice_log.py
Normal file
@ -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
|
18
mooc/schemas/mobile_number.py
Normal file
18
mooc/schemas/mobile_number.py
Normal file
@ -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
|
190
mooc/schemas/modules.py
Normal file
190
mooc/schemas/modules.py
Normal file
@ -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
|
17
mooc/schemas/music_reply.py
Normal file
17
mooc/schemas/music_reply.py
Normal file
@ -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
|
24
mooc/schemas/news_reply.py
Normal file
24
mooc/schemas/news_reply.py
Normal file
@ -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
|
17
mooc/schemas/phoneapp_versions.py
Normal file
17
mooc/schemas/phoneapp_versions.py
Normal file
@ -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
|
67
mooc/schemas/profile_fields.py
Normal file
67
mooc/schemas/profile_fields.py
Normal file
@ -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
|
18
mooc/schemas/rule.py
Normal file
18
mooc/schemas/rule.py
Normal file
@ -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
|
19
mooc/schemas/rule_Keyword.py
Normal file
19
mooc/schemas/rule_Keyword.py
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user