Kaynağa Gözat

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

niezch 2 yıl önce
ebeveyn
işleme
4157a9d52f

+ 3 - 0
opms_parent/app/model/plat/internal/plat_punch_records.go

@@ -28,4 +28,7 @@ type PlatPunchRecords struct {
 	UpdatedName   string      `orm:"updated_name"   json:"updatedName"`   // 更新人
 	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客户
+	TargetName    string      `orm:"target_name"    json:"targetName"`    // 根据打卡类型选择
 }

+ 3 - 0
opms_parent/app/model/plat/plat_punch_records.go

@@ -28,6 +28,9 @@ type AddPunchRecordsReq struct {
 	PunchLat      string `json:"punchLat"         v:"required#纬度不能为空"`   // 纬度
 	PunchLocation string `json:"punchLocation"    v:"required#打卡地址不能为空"` // 打卡地址
 	Remark        string `json:"remark"`                                 // 备注
+	PunchType     string `json:"punchType"`                              // 打卡类型(10居家20客户30经销商40代理商)
+	TargetId      string `json:"targetId"`                               //根据打卡类型选择10居家->不需要录入20客户
+	TargetName    string `json:"targetName"`                             //根据打卡类型选择10居家->不需要录入20客户
 }
 
 // 打卡记录详情展示,按日期返回前端结果