z&SSSAnf~5G>(LnRcHYNuT&1gD^eP
literal 0
HcmV?d00001
diff --git a/EduSystemServer/Student/migrations/__pycache__/__init__.cpython-37.pyc b/EduSystemServer/Student/migrations/__pycache__/__init__.cpython-37.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..eb1c48e32023a5069db338d38e4252337a4671bb
GIT binary patch
literal 175
zcmZ?b<>g`kf;nfur-10kAOZ#$feZ&AE@lA|DGb33nv8xc8Hzx{2;yrfkn3U<^K{9U
zr<0e)JexZ6Y1hK%>lQwr(Dr=u?&rJb$GE1H23HoBq~;=6!Kp=MsYNltC8a5;c_lHq
pndwD|C7Jno#WC^mnR%Hd@$q^EmA5!-a`RJ4b5iXg`kg5zhur^Ep1#~=<2umBkjKwPWv=03(p$0K~-tKq8ePiZO)&sFN{@
zIfV(RoB0-xbAD-2aVkXTEw*GZ&rg%(7Ds%1USe))eEco0`1suXl+qj!n6x?GHc*?czLyAbW96ElZ=ZtMPg>9y>iVQJfP}
zP=tsqf)EHUph!FqyaW=5Mf?qjyEw8pQGfv~F-D9tM!K1pBa2&Fw-S5gaEBR}46wm@#{fsLL-&@&
zD~PyIL8P)oJn%Y3=pUm+BV@`QjX@+CYLzP@?jHzAY9}v1qt
z1~-LuXafTiEU;%5cW~~4LoN~ZW;U;A#D^->mWYRl4*}GnF*A7;XEhN(6Tfw6!WQmn
zV9=+ag+aG&nY;<7G2m_Gw#S9c#FZjI|9}7R`{J8Bi{Cz;zyGVU`a=jURh!7+D3;Uc
zs+g+ax{$qbCZaSR31yQ!{tq{
z-`?E0_~~f=*&Su)(}`F&_}y3YcW*1VF9i(q&|I@)9j`jQp1Ej}6f#b}HRMxhSBrlxp?3b|?)-~i<{y69
z{p+Jo=kMKHe1C6o_x9rFqs7tZ-3w53rdcjV544VuXtrC%*eyA?Gnp!zVsE0sjN675VrgrBKoi<+l%FSlVCIiz(NmX3?gJDlYNmwiEIRY!nJ4Dg5KmBcfm%t&do}vt+~d{
ztY473vg-2>K0&UZr5MQlepq?9a!=5jZYpB5Y8L76S|Or*JP~7*FO`G(Wf>tfcg7nmr6e0a3B37{ovX?aWjcLMWS0)>GBv>*#PI0NYSewC+T2#OeWp$Nk}!p|e|2$Ybxw8i}b
zl#z5a@z}%b+FGxMwU+cuoom&eRs$K<;|*nDKV>5vK11lZ2tRiB`yaOZpZ5;lZTnc2
zd}C9y$9dY0Wo>;!Ds9FM@Py`Zq@6gbK5obWbT$gBxN{jxWha8aVpj5+pR*>AS4||l
z{6V*XW}E07Ch%2f(OmI{REbi`1fv8TL1!zSI9euRB~pK3qoxLamV6O!K9SnJ6~?kI
zj~3_%I=37t*{FxN<)*e5Dys{X#U(|Z)hzW>gZ&&^lVq6)q(qw-99B%<0xNT6CVS@O
zwKWV&!)IXl93>Yr(=?kIVChg8aFm}0B&5^KCV$MuaiNB=L=_2!35Z>Zc27GE9h1JcgD{Z#
zSnR?{LK0hDK+yJT+yNQJYKlVXCPy)w&{L2Y=Vt3
zm$_U~+_QBSnzgVV&A_8{%zojh>CE7-S64AjXYSAyNT-t4oi;P=%wb8X6UZBk+L0zM
Icf?5kFXaKong9R*
diff --git a/EduSystemServer/course/__pycache__/views.cpython-37.pyc b/EduSystemServer/course/__pycache__/views.cpython-37.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2244580e248d41298a7b0b19fc043de2d6b213ee
GIT binary patch
literal 207
zcmZ?b<>g`kg2ggFQk;PFV-N=hn1BoiATAaF5-AKRj5!Rsj8Tk?3@J>(44TX@fuanW
zjJMc|Qu9($i~Ka1ZV9AhCFZ5)>lJ6@7nLNJmJ}C(%vi}#!~&$i#8)>U%f%|@>5?r^
zCohe8Hg)FHu7%InEqp$q?fK^2&v(y{aZM==t}HG|%|)<+Q;W({i(-=VON)wAW6Cm9
a%Zv32DsOSv~uUv
z?4FQ76{3nLLLiV3uo9mKCy9fo}o$S{dhWe*d;D81IxbMwa|;}X58%M1gJHUp#0fwfKGVD@?2!qUJ7
z3rbiXRDgjEWvGnJ9S#n89P+qO1uys1W}YQjo_SWt`2ajPwg}-NEPw7E7-T(sZ0XDvQO_5s
z@W}uC7mlM{gp2U#LbMecJ+{l>@iFh4?NjgsDfpyvuFj>~CLzlbgWfI*<*l!;KkbKc
zD8nGq6D^qm#!}d%qOzMwCQ?*pFNCd3i~Hx@-=^Q(p8opb|K{-Nay7?V5W>DNCHMyVSG@eQhN@VXyi+?TsTM^cvD
z8{yF#|6Mix@o@6#ZDscaLMRvEzWZwO_N_WA)|xVe{pA_S#&$uL=s8L3)2=~@ipwO^
zBnw7_m{YBr1;E-O0e=)_B8XH4y1op$5z=2Zoua)HVg#uwC!=Ch@>Wyv5EQ?%S+|rI
zWHRw7)j%Q$eKtf@cR4+87y?A-(}o6A4#rTJ`?VsI#$5YUQ<;^eG5cl?;Y`0jnBKWH
zdG8~|(_Wp63mRKbke#QuoW+XD-js>
z<5y^#*f0pkv>CRg>PPGb4~3#&0K0{7JV#7sN2dZ7&oAsYgov3
n_So4dZnDN)3-J`i%h#STEv)BgLRDTU%J!mGKh;UDu!{LFUjMIx
literal 0
HcmV?d00001
diff --git a/EduSystemServer/course/migrations/__pycache__/__init__.cpython-37.pyc b/EduSystemServer/course/migrations/__pycache__/__init__.cpython-37.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..189cb4f42f592b908a02583906d58ab87e04d244
GIT binary patch
literal 174
zcmZ?b<>g`kg5zhur-10kAOZ#$feZ&AE@lA|DGb33nv8xc8Hzx{2;yr9kn3U<^K{9U
zr<0e)JexZ6Y1hK%>lQwr(Dr=u?&rJb$GE1H23HoBq~;=6!Kp=MsYNl#`K3k0sWG{k
o=|zbpnfZCeG4b)4d6^~g@p=W7w>WHa^HWN5Qtdz%egg`kf|X~#r^Es2#~=<2umBkjKwPWv=03(p$0K~-tKq8ePiZO)&sFN{@
zIfV(RoB0-RNNQqoMrsj6>n-*Y2-i=Oa&yB0oQxA6Idw&$C7Ki@q+#xh6
zphItQ+)ShS7Z5-L=4mx%Gp5aIpo6igfgxB`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sq-w
oy(qCHGe565CO$qhFS8^*Uaz3?7Kcr4eoARhsvXG2&p^xo03^IOiU0rr
literal 0
HcmV?d00001
diff --git a/EduSystemServer/teacher/models.py b/EduSystemServer/teacher/models.py
index d6ce4c4..db9546d 100644
--- a/EduSystemServer/teacher/models.py
+++ b/EduSystemServer/teacher/models.py
@@ -4,11 +4,15 @@ from django.db import models
# Create your models here.
class Teacher(models.Model):
tid = models.AutoField(primary_key=True, verbose_name="教师编号", name="tid")
- t_name = models.CharField(max_length=255, verbose_name="教师名称", name="t_name", blank=True)
- sex = models.CharField(max_length=128, verbose_name="教师性别", name="t_sex", blank=True)
- title = models.CharField(max_length=128, verbose_name="教师职称", name="t_title", blank=True)
- education = models.CharField(max_length=128, verbose_name="教师学历", name="t_education", blank=True)
- dept = models.CharField(max_length=128, verbose_name="教师所属院系", name="t_dept", blank=True)
+ name = models.CharField(max_length=255, verbose_name="教师名称", name="name", blank=True)
+ sex = models.CharField(max_length=128, verbose_name="教师性别", name="sex", blank=True)
+ title = models.CharField(max_length=128, verbose_name="教师职称", name="title", blank=True)
+ education = models.CharField(max_length=128, verbose_name="教师学历", name="education", blank=True)
+ dept = models.CharField(max_length=128, verbose_name="教师所属院系", name="dept", blank=True)
+
+ def to_dict(self):
+ return {"tid": self.tid, "name": self.name, "sex": self.sex,
+ "title": self.title, "education": self.education, "dept": self.dept}
class Meta:
db_table = "teacher"