소스 검색

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

icole 5 년 전
부모
커밋
7653fa3e11
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      i2bill.api
  2. 2 2
      internal/types/types.go

+ 2 - 2
i2bill.api

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

+ 2 - 2
internal/types/types.go

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