This commit is contained in:
Leufolium 2024-10-16 17:30:15 +08:00
parent eafb373bd4
commit d9902a3f60
1 changed files with 22 additions and 0 deletions

View File

@ -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
}