Browse Source

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

icole 4 years ago
parent
commit
7653fa3e11
2 changed files with 4 additions and 4 deletions
  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"`
 }