Przeglądaj źródła

feature(订单管理系统):
1、小程序打卡添加打卡类型和打卡人

niezch 2 lat temu
rodzic
commit
1ebbaa2aec

+ 1 - 1
opms_parent/app/model/plat/internal/plat_punch_records.go

@@ -29,6 +29,6 @@ type PlatPunchRecords struct {
 	UpdatedTime   *gtime.Time `orm:"updated_time"   json:"updatedTime"`   // 更新时间
 	DeletedTime   *gtime.Time `orm:"deleted_time"   json:"deletedTime"`   // 删除时间
 	PunchType     string      `orm:"punch_type"     json:"punchType"`     // 打卡类型(10居家20客户30经销商40代理商)
-	TargetId      string      `orm:"target_id"      json:"targetId"`      //根据打卡类型选择10居家->不需要录入20客户
+	TargetId      int         `orm:"target_id"      json:"targetId"`      //根据打卡类型选择10居家->不需要录入20客户
 	TargetName    string      `orm:"target_name"    json:"targetName"`    // 根据打卡类型选择
 }

+ 1 - 1
opms_parent/app/model/plat/plat_punch_records.go

@@ -29,7 +29,7 @@ type AddPunchRecordsReq struct {
 	PunchLocation string `json:"punchLocation"    v:"required#打卡地址不能为空"` // 打卡地址
 	Remark        string `json:"remark"`                                 // 备注
 	PunchType     string `json:"punchType"`                              // 打卡类型(10居家20客户30经销商40代理商)
-	TargetId      string `json:"targetId"`                               //根据打卡类型选择10居家->不需要录入20客户
+	TargetId      int    `json:"targetId"`                               //根据打卡类型选择10居家->不需要录入20客户
 	TargetName    string `json:"targetName"`                             //根据打卡类型选择10居家->不需要录入20客户
 }