From d9902a3f6089f2278e6968ded6ac31425a051cc0 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 16 Oct 2024 17:30:15 +0800 Subject: [PATCH] 1 --- .../proto/not_null_def_api.go | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 api/proto/Raven_IQ_test_visit/proto/not_null_def_api.go 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 +}