| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- syntax = "proto3";
- package gorpc;
- option go_package = "code.clickto.dev/nomo-server/go-service-pb/client";
- import "pb/common.proto";
- // ServiceTypes
- message ServiceTypesVo {
- int64 id = 1; // ID
- string productCode = 2; // 产品标识
- string code = 3; // 权益类型标识
- string name = 4; // 权益类型名称
- int64 sort = 5; // 排序
- Status status = 6; // 状态 1启用 2禁用
- string remark = 7; // 备注
- int64 createTime = 8; // 创建时间
- int64 createAt = 9; // 创建者ID
- int64 updateTime = 10; // 更新时间
- int64 updateAt = 11; // 更新者ID
- }
- message ServiceTypesWithValueVo {
- ServiceTypesVo vo = 1;
- int64 value = 2;
- }
- message ServiceTypesGetReq { ServiceTypesVo vo = 1; }
- message ServiceTypesGetResp { ServiceTypesVo vo = 1; }
- message ServiceTypesAddReq { ServiceTypesVo vo = 1; }
- message ServiceTypesAddResp { ServiceTypesVo vo = 1; }
- message ServiceTypesUpdateReq { ServiceTypesVo vo = 1; }
- message ServiceTypesUpdateResp { ServiceTypesVo vo = 1; }
- message ServiceTypesDelReq { repeated int64 ids = 1; }
- message ServiceTypesListReq {
- Page page = 1;
- ServiceTypesVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message ServiceTypesListResp {
- int64 total = 1;
- repeated ServiceTypesVo list = 2;
- }
- // end ServiceTypes
- // ServiceBox
- message ServiceBoxVo {
- int64 id = 1; // ID
- string productCode = 2; // 产品标识
- string code = 3; // 权益包标识
- string name = 4; // 权益包名称
- int64 sort = 5; // 排序
- Status status = 6; // 状态 1启用 2禁用
- string remark = 7; // 备注
- int64 createTime = 8; // 创建时间
- int64 createAt = 9; // 创建者ID
- int64 updateTime = 10; // 更新时间
- int64 updateAt = 11; // 更新者ID
- }
- message ServiceBoxWithDetailsVo {
- ServiceBoxVo serviceBox = 1;
- repeated ServiceTypesWithValueVo serviceTypes = 2;
- }
- message ServiceBoxWithDurationVo {
- ServiceBoxVo serviceBox = 1;
- int64 licenseDurationDay = 2;
- int64 licenseDurationMinutes = 3;
- BoolInt isMaster = 4;
- int64 bindId = 5;
- }
- message ServiceBoxGetReq { ServiceBoxVo vo = 1; }
- message ServiceBoxGetResp { ServiceBoxVo vo = 1; }
- message ServiceBoxGetWithDetailsReq {
- ServiceBoxVo vo = 1;
- }
- message ServiceBoxGetWithDetailsResp {
- ServiceBoxVo serviceBox = 1;
- repeated ServiceTypesWithValueVo serviceTypes = 2;
- }
- message ServiceBoxAddReq { ServiceBoxVo vo = 1; }
- message ServiceBoxAddResp { ServiceBoxVo vo = 1; }
- message ServiceBoxAddWithDetailsReq {
- ServiceBoxVo serviceBox = 1;
- repeated ServiceTypesWithValueVo serviceTypes = 2;
- }
- message ServiceBoxAddWithDetailsResp {
- ServiceBoxVo serviceBox = 1;
- repeated ServiceTypesWithValueVo serviceTypes = 2;
- }
- message ServiceBoxUpdateReq { ServiceBoxVo vo = 1; }
- message ServiceBoxUpdateResp { ServiceBoxVo vo = 1; }
- message ServiceBoxUpdateWithDetailsReq {
- ServiceBoxVo serviceBox = 1;
- repeated ServiceTypesWithValueVo serviceTypes = 2;
- }
- message ServiceBoxUpdateWithDetailsResp {
- ServiceBoxVo serviceBox = 1;
- repeated ServiceTypesWithValueVo serviceTypes = 2;
- }
- message ServiceBoxDelReq { repeated int64 ids = 1; }
- message ServiceBoxListReq {
- Page page = 1;
- ServiceBoxVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message ServiceBoxListResp {
- int64 total = 1;
- repeated ServiceBoxVo list = 2;
- }
- // end ServiceBox
- // ServiceBoxTypes
- message ServiceBoxTypesVo {
- int64 id = 1; // ID
- int64 serviceBoxId = 2; // 权益包ID
- int64 serviceTypeId = 3; // 权益类型ID
- int64 serviceValue = 4; // 权益值 根据不同的 serviceTypeId,这里的值的含义不同
- int64 createTime = 5; // 创建时间
- int64 createAt = 6; // 创建者ID
- int64 updateTime = 7; // 更新时间
- int64 updateAt = 8; // 更新者ID
- }
- message ServiceBoxTypesGetReq { ServiceBoxTypesVo vo = 1; }
- message ServiceBoxTypesGetResp { ServiceBoxTypesVo vo = 1; }
- message ServiceBoxTypesAddReq { ServiceBoxTypesVo vo = 1; }
- message ServiceBoxTypesAddResp { ServiceBoxTypesVo vo = 1; }
- message ServiceBoxTypesUpdateReq { ServiceBoxTypesVo vo = 1; }
- message ServiceBoxTypesUpdateResp { ServiceBoxTypesVo vo = 1; }
- message ServiceBoxTypesDelReq { repeated int64 ids = 1; }
- message ServiceBoxTypesListReq {
- Page page = 1;
- ServiceBoxTypesVo vo = 2;
- repeated int64 serviceBoxIds = 3;
- repeated int64 serviceTypeIds = 4;
- repeated int64 excludeIds = 5;
- int64 boxStatus = 6;
- }
- message ServiceBoxTypesListResp {
- int64 total = 1;
- repeated ServiceBoxTypesVo list = 2;
- }
- // end ServiceBoxTypes
- // SubscribePeriodType 订阅周期类型
- enum SubscribePeriodType {
- SubscribePeriodTypeUnknown = 0;
- SubscribePeriodTypeDay = 1;
- SubscribePeriodTypeWeek = 2;
- SubscribePeriodTypeMonth = 3;
- SubscribePeriodTypeYear = 4;
- }
- // ServicePlan
- message ServicePlanVo {
- int64 id = 1; // ID
- string productCode = 2; // 产品标识
- string code = 3; // 套餐code
- string name = 4; // 套餐名称
- string title = 5; // 标题(默认值,对外显示)
- string subTitle = 6; // 副标题(默认值,对外显示)
- string introduce = 7; // 简介(默认值,对外显示)
- string tag = 8; // 标签内容(默认值,对外显示)
- float orgPrice = 9; // 原价(默认值)
- float price = 10; // 现价(默认值)
- int64 currency = 11; // 价格货币类型(默认值)
- BoolInt recommend = 12; // 是否推荐套餐(默认值) 1推荐 2不推荐
- BoolInt isDefault = 13; // 是否默认套餐(默认值) 1默认 2不默认
- BoolInt subscribeType = 14; // 订阅类型 1订阅类型 2非订阅类型
- SubscribePeriodType subscribePeriodType = 15; // 订阅周期类型 1Day 2Week 3Month 4Year(仅当订阅类型为1时有效)
- int64 subscribePeriodValue = 16; // 订阅周期值(仅当订阅类型为1时有效)
- int64 priority = 17; // 套餐使用优先级
- int64 mergeRule = 18; // 套餐合并规则(规则一样的套餐包含的权益可以合并到一起)
- int64 sort = 19; // 排序
- Status status = 20; // 状态 1启用 2禁用
- string remark = 21; // 备注
- int64 createTime = 22; // 创建时间
- int64 createAt = 23; // 创建者ID
- int64 updateTime = 24; // 更新时间
- int64 updateAt = 25; // 更新者ID
- int64 tagType = 26; // 标签类型(与客户端约定)
- }
- message ServicePlanWithBoxesVo {
- ServicePlanVo servicePlan = 1;
- repeated ServiceBoxWithDurationVo serviceBoxes = 2;
- }
- message ServicePlanGetReq { ServicePlanVo vo = 1; }
- message ServicePlanGetResp { ServicePlanVo vo = 1; }
- message ServicePlanGetWithBoxesReq { ServicePlanVo vo = 1; }
- message ServicePlanGetWithBoxesResp {
- ServicePlanVo servicePlan = 1;
- repeated ServiceBoxWithDurationVo serviceBoxes = 2;
- }
- message ServicePlanAddReq { ServicePlanVo vo = 1; }
- message ServicePlanAddResp { ServicePlanVo vo = 1; }
- message ServicePlanAddWithBoxesReq {
- ServicePlanVo servicePlan = 1;
- repeated ServiceBoxWithDurationVo serviceBoxes = 2;
- }
- message ServicePlanAddWithBoxesResp {
- ServicePlanVo servicePlan = 1;
- repeated ServiceBoxWithDurationVo serviceBoxes = 2;
- }
- message ServicePlanUpdateReq { ServicePlanVo vo = 1; }
- message ServicePlanUpdateResp { ServicePlanVo vo = 1; }
- message ServicePlanUpdateWithBoxesReq {
- ServicePlanVo servicePlan = 1;
- repeated ServiceBoxWithDurationVo serviceBoxes = 2;
- }
- message ServicePlanUpdateWithBoxesResp {
- ServicePlanVo servicePlan = 1;
- repeated ServiceBoxWithDurationVo serviceBoxes = 2;
- }
- message ServicePlanDelReq { repeated int64 ids = 1; }
- message ServicePlanListReq {
- Page page = 1;
- ServicePlanVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message ServicePlanListResp {
- int64 total = 1;
- repeated ServicePlanVo list = 2;
- }
- message ServicePlanListWithBoxesReq {
- Page page = 1;
- ServicePlanVo vo = 2;
- repeated string productCodes = 3;
- repeated int64 excludeIds = 4;
- }
- message ServicePlanListWithBoxesResp {
- int64 total = 1;
- repeated ServicePlanWithBoxesVo list = 2;
- }
- // end ServicePlan
- // ServicePlanBoxes
- message ServicePlanBoxesVo {
- int64 id = 1; // ID
- int64 servicePlanId = 2; // 套餐ID
- int64 serviceBoxId = 3; // 权益包ID
- int64 licenseDurationDay = 4; // 权益包持续天数
- int64 licenseDurationMinutes = 5; // 权益包额外持续分钟数
- BoolInt isMaster = 6; // 是否主权益包 1是 2否
- int64 createTime = 7; // 创建时间
- int64 createAt = 8; // 创建者ID
- int64 updateTime = 9; // 更新时间
- int64 updateAt = 10; // 更新者ID
- }
- message ServicePlanBoxesGetReq { ServicePlanBoxesVo vo = 1; }
- message ServicePlanBoxesGetResp { ServicePlanBoxesVo vo = 1; }
- message ServicePlanBoxesAddReq { ServicePlanBoxesVo vo = 1; }
- message ServicePlanBoxesAddResp { ServicePlanBoxesVo vo = 1; }
- message ServicePlanBoxesUpdateReq { ServicePlanBoxesVo vo = 1; }
- message ServicePlanBoxesUpdateResp { ServicePlanBoxesVo vo = 1; }
- message ServicePlanBoxesDelReq { repeated int64 ids = 1; }
- message ServicePlanBoxesListReq {
- Page page = 1;
- ServicePlanBoxesVo vo = 2;
- repeated int64 servicePlanIds = 3;
- repeated int64 serviceBoxIds = 4;
- repeated int64 excludeIds = 5;
- int64 planStatus = 6;
- }
- message ServicePlanBoxesListResp {
- int64 total = 1;
- repeated ServicePlanBoxesVo list = 2;
- }
- // end ServicePlanBoxes
- // ServicePlanChannel
- message ServicePlanChannelVo {
- int64 id = 1; // ID
- string productCode = 2; // 产品标识
- string channel = 3; // 渠道标识
- string channelItemId = 4; // 套餐唯一ID或商店SKUID
- int64 servicePlanId = 5; // 套餐ID
- string title = 6; // 自定义标题(对外显示)
- string subTitle = 7; // 自定义副标题(对外显示)
- string introduce = 8; // 自定义简介(对外显示)
- string tag = 9; // 自定义标签内容(对外显示)
- float orgPrice = 10; // 在该渠道下的原价
- float price = 11; // 在该渠道下的现价
- int64 currency = 12; // 价格货币类型
- BoolInt recommend = 13; // 是否推荐商品(默认值) 1推荐 2不推荐
- BoolInt isDefault = 14; // 是否默认商品(默认值) 1默认 2不默认
- string displayPolicyConfig = 15; // 显示策略
- int64 sort = 16; // 排序
- Status status = 17; // 状态 1启用 2禁用
- string remark = 18; // 备注
- int64 createTime = 19; // 创建时间
- int64 createAt = 20; // 创建者ID
- int64 updateTime = 21; // 更新时间
- int64 updateAt = 22; // 更新者ID
- }
- message ServicePlanChannelGetReq { ServicePlanChannelVo vo = 1; }
- message ServicePlanChannelGetResp { ServicePlanChannelVo vo = 1; }
- message ServicePlanChannelAddReq { ServicePlanChannelVo vo = 1; }
- message ServicePlanChannelAddResp { ServicePlanChannelVo vo = 1; }
- message ServicePlanChannelUpdateReq { ServicePlanChannelVo vo = 1; }
- message ServicePlanChannelUpdateResp { ServicePlanChannelVo vo = 1; }
- message ServicePlanChannelDelReq { repeated int64 ids = 1; }
- message ServicePlanChannelListReq {
- Page page = 1;
- ServicePlanChannelVo vo = 2;
- repeated string productCodes = 3;
- repeated string channels = 4;
- repeated string channelItemIds = 5;
- repeated int64 servicePlanIds = 6;
- repeated int64 excludeIds = 7;
- }
- message ServicePlanChannelListResp {
- int64 total = 1;
- repeated ServicePlanChannelVo list = 2;
- }
- // end ServicePlanChannel
- service GoPlanClient {
- /** ServiceTypes Model */
- // ServiceTypesAdd
- rpc ServiceTypesAdd(ServiceTypesAddReq) returns (ServiceTypesAddResp);
- rpc ServiceTypesUpdate(ServiceTypesUpdateReq) returns (ServiceTypesUpdateResp);
- rpc ServiceTypesDel(ServiceTypesDelReq) returns (Empty);
- rpc ServiceTypesGet(ServiceTypesGetReq) returns (ServiceTypesGetResp);
- rpc ServiceTypesList(ServiceTypesListReq) returns (ServiceTypesListResp);
- /** ServiceBox Model */
- // ServiceBoxAdd
- rpc ServiceBoxAdd(ServiceBoxAddReq) returns (ServiceBoxAddResp);
- rpc ServiceBoxAddWithDetails(ServiceBoxAddWithDetailsReq) returns (ServiceBoxAddWithDetailsResp);
- rpc ServiceBoxUpdate(ServiceBoxUpdateReq) returns (ServiceBoxUpdateResp);
- rpc ServiceBoxUpdateWithDetails(ServiceBoxUpdateWithDetailsReq) returns (ServiceBoxUpdateWithDetailsResp);
- rpc ServiceBoxDel(ServiceBoxDelReq) returns (Empty);
- rpc ServiceBoxGet(ServiceBoxGetReq) returns (ServiceBoxGetResp);
- rpc ServiceBoxGetWithDetails(ServiceBoxGetWithDetailsReq) returns (ServiceBoxGetWithDetailsResp);
- rpc ServiceBoxList(ServiceBoxListReq) returns (ServiceBoxListResp);
- /** ServiceBoxTypes Model */
- // ServiceBoxTypesAdd
- rpc ServiceBoxTypesAdd(ServiceBoxTypesAddReq) returns (ServiceBoxTypesAddResp);
- rpc ServiceBoxTypesUpdate(ServiceBoxTypesUpdateReq) returns (ServiceBoxTypesUpdateResp);
- rpc ServiceBoxTypesDel(ServiceBoxTypesDelReq) returns (Empty);
- rpc ServiceBoxTypesGet(ServiceBoxTypesGetReq) returns (ServiceBoxTypesGetResp);
- rpc ServiceBoxTypesList(ServiceBoxTypesListReq) returns (ServiceBoxTypesListResp);
- /** ServicePlan Model */
- // ServicePlanAdd
- rpc ServicePlanAdd(ServicePlanAddReq) returns (ServicePlanAddResp);
- rpc ServicePlanAddWithBoxes(ServicePlanAddWithBoxesReq) returns (ServicePlanAddWithBoxesResp);
- rpc ServicePlanUpdate(ServicePlanUpdateReq) returns (ServicePlanUpdateResp);
- rpc ServicePlanUpdateWithBoxes(ServicePlanUpdateWithBoxesReq) returns (ServicePlanUpdateWithBoxesResp);
- rpc ServicePlanDel(ServicePlanDelReq) returns (Empty);
- rpc ServicePlanGet(ServicePlanGetReq) returns (ServicePlanGetResp);
- rpc ServicePlanGetWithBoxes(ServicePlanGetWithBoxesReq) returns (ServicePlanGetWithBoxesResp);
- rpc ServicePlanList(ServicePlanListReq) returns (ServicePlanListResp);
- /** ServicePlanBoxes Model */
- // ServicePlanBoxesAdd
- rpc ServicePlanBoxesAdd(ServicePlanBoxesAddReq) returns (ServicePlanBoxesAddResp);
- rpc ServicePlanBoxesUpdate(ServicePlanBoxesUpdateReq) returns (ServicePlanBoxesUpdateResp);
- rpc ServicePlanBoxesDel(ServicePlanBoxesDelReq) returns (Empty);
- rpc ServicePlanBoxesGet(ServicePlanBoxesGetReq) returns (ServicePlanBoxesGetResp);
- rpc ServicePlanBoxesList(ServicePlanBoxesListReq) returns (ServicePlanBoxesListResp);
- /** ServicePlanChannel Model */
- // ServicePlanChannelAdd
- rpc ServicePlanChannelAdd(ServicePlanChannelAddReq) returns (ServicePlanChannelAddResp);
- rpc ServicePlanChannelUpdate(ServicePlanChannelUpdateReq) returns (ServicePlanChannelUpdateResp);
- rpc ServicePlanChannelDel(ServicePlanChannelDelReq) returns (Empty);
- rpc ServicePlanChannelGet(ServicePlanChannelGetReq) returns (ServicePlanChannelGetResp);
- rpc ServicePlanChannelList(ServicePlanChannelListReq) returns (ServicePlanChannelListResp);
- }
|