فهرست منبع

修改收单表字段可选参数

icole 4 سال پیش
والد
کامیت
c1c2351576
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      i2bill.api
  2. 2 2
      internal/types/types.go

+ 2 - 2
i2bill.api

@@ -124,8 +124,8 @@ type enrollRequest {
 
 
 type enrollAddReq {
 type enrollAddReq {
 	StuName       string `json:"stu_name"`
 	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"`
 	StuPhone      string `json:"stu_phone"`
 	SchId         int    `json:"sch_id"`
 	SchId         int    `json:"sch_id"`
 	Address       string `json:"address"`
 	Address       string `json:"address"`

+ 2 - 2
internal/types/types.go

@@ -117,8 +117,8 @@ type EnrollRequest struct {
 
 
 type EnrollAddReq struct {
 type EnrollAddReq struct {
 	StuName       string `json:"stu_name"`
 	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"`
 	StuPhone      string `json:"stu_phone"`
 	SchId         int    `json:"sch_id"`
 	SchId         int    `json:"sch_id"`
 	Address       string `json:"address"`
 	Address       string `json:"address"`