Explorar el Código

fix(跟进): 跟进创建去掉联系人的必填校验

lk hace 2 años
padre
commit
20517423f8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      opms_parent/app/model/plat/plat_followup.go

+ 2 - 2
opms_parent/app/model/plat/plat_followup.go

@@ -46,8 +46,8 @@ type AddPlatFollowupReq struct {
 	TargetName    string                    `orm:"target_name"    json:"targetName"    v:"required#跟进对象不能为空"`                    // 跟进对象
 	CustId        int                       `orm:"cust_id"        json:"custId"`                                                 // 关联客户
 	CustName      string                    `orm:"cust_name"      json:"custName"`                                               // 客户名称
-	ContactsId    int                       `orm:"contacts_id"    json:"contactsId"    v:"required|min:1#关联联系人不能为空|关联联系人不能为空"`   // 关联联系人
-	ContactsName  string                    `orm:"contacts_name"  json:"contactsName"  v:"required#联系人姓名不能为空"`                   // 联系人姓名
+	ContactsId    int                       `orm:"contacts_id"    json:"contactsId"`                                             // 关联联系人
+	ContactsName  string                    `orm:"contacts_name"  json:"contactsName"`                                           // 联系人姓名
 	Reminders     string                    `orm:"reminders"      json:"reminders"`                                              // 提醒对象
 	NextTime      *gtime.Time               `orm:"next_time"      json:"nextTime"`                                               // 下次联系时间
 	Remark        string                    `orm:"remark"         json:"remark"`                                                 // 备注