feat: add profile api

This commit is contained in:
2026-06-08 17:36:03 +08:00
parent ba9fb33062
commit 2b86c91edd
9 changed files with 452 additions and 4 deletions
+5
View File
@@ -51,6 +51,7 @@ class User(AbstractBaseUser, PermissionsMixin, BaseModel):
null=True, blank=True, verbose_name='所属科室'
)
title_name = models.CharField('职称', max_length=50, blank=True)
practice_years = models.CharField('执业年限', max_length=20, blank=True)
major = models.CharField('专业', max_length=100, blank=True)
training_stage = models.CharField('培训阶段', max_length=50, blank=True)
learning_target = models.CharField('学习目标', max_length=255, blank=True)
@@ -138,6 +139,10 @@ class Institution(BaseModel):
level = models.CharField('等级', max_length=30, blank=True)
province = models.CharField('省份', max_length=50, blank=True)
city = models.CharField('城市', max_length=50, blank=True)
banner_url = models.CharField(
'机构Banner图', max_length=500, blank=True,
help_text='机构专属图片:可为静态相对路径(如 institutions/xxx.png)或完整 http(s) URL'
)
class Meta:
db_table = 'institution'