Explorar o código

收单可选参数

icole %!s(int64=4) %!d(string=hai) anos
pai
achega
c4b034df10
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/types/types.go

+ 1 - 1
internal/types/types.go

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