diff --git a/api/proto/Raven_IQ_test_visit/proto/not_null_def_api.go b/api/proto/Raven_IQ_test_visit/proto/not_null_def_api.go new file mode 100644 index 00000000..064a371c --- /dev/null +++ b/api/proto/Raven_IQ_test_visit/proto/not_null_def_api.go @@ -0,0 +1,22 @@ +package proto + +import ( + "service/library/validator" +) + +// op 创建 +func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) { + params = make([]*validator.JsonParam, 0) + params = append(params, validator.NewStringPtrParam("请确认用户id", p.RavenIQTestVisit.UserId)) + params = append(params, validator.NewInt64PtrParam("请确认访问类型", p.RavenIQTestVisit.VType)) + params = append(params, validator.NewInt64PtrParam("请确认访问时间", p.RavenIQTestVisit.Ct)) + return +} + +// op 计数 +func (p *OpCountReq) ProvideNotNullValue() (params []*validator.JsonParam) { + params = make([]*validator.JsonParam, 0) + params = append(params, validator.NewInt64PtrParam("请确认访问类型", p.VType)) + params = append(params, validator.NewInt64PtrParam("请确认计数类型", p.CType)) + return +}