优化proto字段名称
This commit is contained in:
48
cmd.pb.go
48
cmd.pb.go
@@ -2100,11 +2100,11 @@ type ExpGet struct {
|
||||
ExtFields []string `protobuf:"bytes,1,rep,name=ext_fields,json=extFields,proto3" json:"ext_fields,omitempty"` // 扩展字段(除基础字段必然输出外,其余字段需在这里填写,也可以使用*输出全部扩展字段)
|
||||
WhereBeginDay uint64 `protobuf:"varint,10,opt,name=where_begin_day,json=whereBeginDay,proto3" json:"where_begin_day,omitempty"` // 起始日期
|
||||
WhereEndDay uint64 `protobuf:"varint,11,opt,name=where_end_day,json=whereEndDay,proto3" json:"where_end_day,omitempty"` // 结束日期
|
||||
WhereExpId []uint32 `protobuf:"varint,12,rep,packed,name=where_exp_id,json=whereExpId,proto3" json:"where_exp_id,omitempty"` // 实验ID(1-10)
|
||||
WhereBucketId []uint32 `protobuf:"varint,12,rep,packed,name=where_bucket_id,json=whereBucketId,proto3" json:"where_bucket_id,omitempty"` // 实验ID(1-10)
|
||||
WhereTarget string `protobuf:"bytes,13,opt,name=where_target,json=whereTarget,proto3" json:"where_target,omitempty"` // 策略ID
|
||||
WhereAdvertiserId []uint64 `protobuf:"varint,14,rep,packed,name=where_advertiser_id,json=whereAdvertiserId,proto3" json:"where_advertiser_id,omitempty"` // 广告主ID
|
||||
GroupBy []string `protobuf:"bytes,20,rep,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"` // 当前支持广告主ID(advertiser_id)
|
||||
TotalFlag uint32 `protobuf:"varint,30,opt,name=TotalFlag,proto3" json:"TotalFlag,omitempty"` // 是否汇总
|
||||
TotalFlag uint32 `protobuf:"varint,30,opt,name=total_flag,json=totalFlag,proto3" json:"total_flag,omitempty"` // 是否汇总,0=不汇总,1=汇总
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -2160,9 +2160,9 @@ func (x *ExpGet) GetWhereEndDay() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ExpGet) GetWhereExpId() []uint32 {
|
||||
func (x *ExpGet) GetWhereBucketId() []uint32 {
|
||||
if x != nil {
|
||||
return x.WhereExpId
|
||||
return x.WhereBucketId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -3416,7 +3416,7 @@ func (x *ExpBucket) GetPercent() uint32 {
|
||||
// ExpGetRes 实验报表返回
|
||||
type ExpGetRes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Expdata []*ExpData `protobuf:"bytes,1,rep,name=expdata,proto3" json:"expdata,omitempty"` // 实验数据
|
||||
ExpData []*ExpData `protobuf:"bytes,1,rep,name=exp_data,json=expData,proto3" json:"exp_data,omitempty"` // 实验数据
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -3451,9 +3451,9 @@ func (*ExpGetRes) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{42}
|
||||
}
|
||||
|
||||
func (x *ExpGetRes) GetExpdata() []*ExpData {
|
||||
func (x *ExpGetRes) GetExpData() []*ExpData {
|
||||
if x != nil {
|
||||
return x.Expdata
|
||||
return x.ExpData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -3461,7 +3461,7 @@ func (x *ExpGetRes) GetExpdata() []*ExpData {
|
||||
type ExpData struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // 日期
|
||||
ExpId uint32 `protobuf:"varint,2,opt,name=ExpId,proto3" json:"ExpId,omitempty"` // 实验ID
|
||||
BucketId uint32 `protobuf:"varint,2,opt,name=bucket_id,json=bucketId,proto3" json:"bucket_id,omitempty"` // 分桶ID
|
||||
BaseFields *ExpBaseFields `protobuf:"bytes,3,opt,name=base_fields,json=baseFields,proto3" json:"base_fields,omitempty"` // 基础字段
|
||||
ExtFields map[string]float64 `protobuf:"bytes,4,rep,name=ext_fields,json=extFields,proto3" json:"ext_fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` // 扩展字段
|
||||
Group map[string]uint64 `protobuf:"bytes,5,rep,name=group,proto3" json:"group,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` // 分组
|
||||
@@ -3506,9 +3506,9 @@ func (x *ExpData) GetTime() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ExpData) GetExpId() uint32 {
|
||||
func (x *ExpData) GetBucketId() uint32 {
|
||||
if x != nil {
|
||||
return x.ExpId
|
||||
return x.BucketId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@@ -3539,8 +3539,8 @@ type ExpBaseFields struct {
|
||||
Cost float64 `protobuf:"fixed64,1,opt,name=cost,proto3" json:"cost,omitempty"` // 花费
|
||||
Exposure int64 `protobuf:"varint,2,opt,name=exposure,proto3" json:"exposure,omitempty"` // 曝光量
|
||||
Click int64 `protobuf:"varint,3,opt,name=click,proto3" json:"click,omitempty"` // 点击量
|
||||
Cpm float64 `protobuf:"fixed64,4,opt,name=cpm,proto3" json:"cpm,omitempty"` // 单次曝光成本
|
||||
Cpc float64 `protobuf:"fixed64,5,opt,name=cpc,proto3" json:"cpc,omitempty"` // 单次点击成本
|
||||
Cpm float64 `protobuf:"fixed64,4,opt,name=cpm,proto3" json:"cpm,omitempty"` // 千次曝光价格
|
||||
Cpc float64 `protobuf:"fixed64,5,opt,name=cpc,proto3" json:"cpc,omitempty"` // 单次点击价格
|
||||
Cpa float64 `protobuf:"fixed64,6,opt,name=cpa,proto3" json:"cpa,omitempty"` // 单次转化成本
|
||||
Ctr float64 `protobuf:"fixed64,7,opt,name=ctr,proto3" json:"ctr,omitempty"` // 点击率
|
||||
Cvr float64 `protobuf:"fixed64,8,opt,name=cvr,proto3" json:"cvr,omitempty"` // 浅层转化率
|
||||
@@ -3787,19 +3787,19 @@ const file_cmd_proto_rawDesc = "" +
|
||||
"\rserver_openid\x18\x04 \x01(\tR\fserverOpenid\x12\x1b\n" +
|
||||
"\x02os\x18\x05 \x01(\x0e2\v.saasapi.OSR\x02os\"\x0e\n" +
|
||||
"\fScriptUpdate\"\t\n" +
|
||||
"\aExpList\"\xa1\x02\n" +
|
||||
"\aExpList\"\xa8\x02\n" +
|
||||
"\x06ExpGet\x12\x1d\n" +
|
||||
"\n" +
|
||||
"ext_fields\x18\x01 \x03(\tR\textFields\x12&\n" +
|
||||
"\x0fwhere_begin_day\x18\n" +
|
||||
" \x01(\x04R\rwhereBeginDay\x12\"\n" +
|
||||
"\rwhere_end_day\x18\v \x01(\x04R\vwhereEndDay\x12 \n" +
|
||||
"\fwhere_exp_id\x18\f \x03(\rR\n" +
|
||||
"whereExpId\x12!\n" +
|
||||
"\rwhere_end_day\x18\v \x01(\x04R\vwhereEndDay\x12&\n" +
|
||||
"\x0fwhere_bucket_id\x18\f \x03(\rR\rwhereBucketId\x12!\n" +
|
||||
"\fwhere_target\x18\r \x01(\tR\vwhereTarget\x12.\n" +
|
||||
"\x13where_advertiser_id\x18\x0e \x03(\x04R\x11whereAdvertiserId\x12\x19\n" +
|
||||
"\bgroup_by\x18\x14 \x03(\tR\agroupBy\x12\x1c\n" +
|
||||
"\tTotalFlag\x18\x1e \x01(\rR\tTotalFlag\"\xa9\a\n" +
|
||||
"\bgroup_by\x18\x14 \x03(\tR\agroupBy\x12\x1d\n" +
|
||||
"\n" +
|
||||
"total_flag\x18\x1e \x01(\rR\ttotalFlag\"\xa9\a\n" +
|
||||
"\aSaasRes\x12&\n" +
|
||||
"\x04code\x18\x01 \x01(\x0e2\x12.saasapi.ErrorCodeR\x04code\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\tR\x06status\x12-\n" +
|
||||
@@ -3888,12 +3888,12 @@ const file_cmd_proto_rawDesc = "" +
|
||||
"\tExpBucket\x12\x1b\n" +
|
||||
"\tbucket_id\x18\x01 \x01(\rR\bbucketId\x12\x1a\n" +
|
||||
"\tpt_exp_id\x18\x02 \x01(\rR\aptExpId\x12\x18\n" +
|
||||
"\apercent\x18\x03 \x01(\rR\apercent\"7\n" +
|
||||
"\tExpGetRes\x12*\n" +
|
||||
"\aexpdata\x18\x01 \x03(\v2\x10.saasapi.ExpDataR\aexpdata\"\xd7\x02\n" +
|
||||
"\apercent\x18\x03 \x01(\rR\apercent\"8\n" +
|
||||
"\tExpGetRes\x12+\n" +
|
||||
"\bexp_data\x18\x01 \x03(\v2\x10.saasapi.ExpDataR\aexpData\"\xde\x02\n" +
|
||||
"\aExpData\x12\x12\n" +
|
||||
"\x04time\x18\x01 \x01(\x04R\x04time\x12\x14\n" +
|
||||
"\x05ExpId\x18\x02 \x01(\rR\x05ExpId\x127\n" +
|
||||
"\x04time\x18\x01 \x01(\x04R\x04time\x12\x1b\n" +
|
||||
"\tbucket_id\x18\x02 \x01(\rR\bbucketId\x127\n" +
|
||||
"\vbase_fields\x18\x03 \x01(\v2\x16.saasapi.ExpBaseFieldsR\n" +
|
||||
"baseFields\x12>\n" +
|
||||
"\n" +
|
||||
@@ -4118,7 +4118,7 @@ var file_cmd_proto_depIdxs = []int32{
|
||||
44, // 57: saasapi.BindSetRes.errors:type_name -> saasapi.BindError
|
||||
44, // 58: saasapi.BindDeleteRes.errors:type_name -> saasapi.BindError
|
||||
48, // 59: saasapi.ExpListRes.buckets:type_name -> saasapi.ExpBucket
|
||||
50, // 60: saasapi.ExpGetRes.expdata:type_name -> saasapi.ExpData
|
||||
50, // 60: saasapi.ExpGetRes.exp_data:type_name -> saasapi.ExpData
|
||||
51, // 61: saasapi.ExpData.base_fields:type_name -> saasapi.ExpBaseFields
|
||||
53, // 62: saasapi.ExpData.ext_fields:type_name -> saasapi.ExpData.ExtFieldsEntry
|
||||
54, // 63: saasapi.ExpData.group:type_name -> saasapi.ExpData.GroupEntry
|
||||
|
||||
Reference in New Issue
Block a user