Procházet zdrojové kódy

修正账号角色权限查询失败

icole před 4 roky
rodič
revize
7653fa3e11
2 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 2 2
      i2bill.api
  2. 2 2
      internal/types/types.go

+ 2 - 2
i2bill.api

@@ -125,9 +125,9 @@ type enrollRequest {
 type enrollAddReq {
 	StuName       string `json:"stu_name"`
 	AgeGroup      int    `json:"age_group,optional"`
-	StuLinkPerson string `json:"stu_link_person,optional"`
+	StuLinkPerson string `json:"stu_link_person"`
 	StuPhone      string `json:"stu_phone"`
-	SchId         int    `json:"sch_id"`
+	SchId         int    `json:"sch_id,optional"`
 	Address       string `json:"address"`
 	Sign          string `json:"sign"`
 }

+ 2 - 2
internal/types/types.go

@@ -118,9 +118,9 @@ type EnrollRequest struct {
 type EnrollAddReq struct {
 	StuName       string `json:"stu_name"`
 	AgeGroup      int    `json:"age_group,optional"`
-	StuLinkPerson string `json:"stu_link_person,optional"`
+	StuLinkPerson string `json:"stu_link_person"`
 	StuPhone      string `json:"stu_phone"`
-	SchId         int    `json:"sch_id"`
+	SchId         int    `json:"sch_id,stu_link_person"`
 	Address       string `json:"address"`
 	Sign          string `json:"sign"`
 }