Sfoglia il codice sorgente

修改收单表字段可选参数

icole 4 anni fa
parent
commit
c1c2351576
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      i2bill.api
  2. 2 2
      internal/types/types.go

+ 2 - 2
i2bill.api

@@ -124,8 +124,8 @@ type enrollRequest {
 
 type enrollAddReq {
 	StuName       string `json:"stu_name"`
-	AgeGroup      int    `json:"age_group"`
-	StuLinkPerson string `json:"stu_link_person"`
+	AgeGroup      int    `json:"age_group,optional"`
+	StuLinkPerson string `json:"stu_link_person,optional"`
 	StuPhone      string `json:"stu_phone"`
 	SchId         int    `json:"sch_id"`
 	Address       string `json:"address"`

+ 2 - 2
internal/types/types.go

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