| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- syntax = "proto3";
- package gorpc;
- option go_package = "code.clickto.dev/nomo-server/go-service-pb/client";
- import "pb/constant.proto";
- // 根据需要增加状态
- enum CommonResultCode {
- Success = 0;
- }
- enum Status {
- UnknownStatus = 0;
- StatusValid = 1;
- StatusInValid = 2;
- }
- enum BoolInt {
- BoolIntUnknown = 0;
- BoolIntTrue = 1;
- BoolIntFalse = 2;
- }
- message Empty {}
- message Int64SelectController {
- repeated int64 values = 1;
- bool exclude = 2;
- }
- message IntSelectController {
- repeated int32 values = 1;
- bool exclude = 2;
- }
- message StringSelectController {
- repeated string values = 1;
- bool exclude = 2;
- }
- message Page {
- message OrderItem {
- string column = 1;
- bool asc = 2;
- bool isFunc = 3;
- }
- int64 pageNo = 1;
- int64 pageSize = 2;
- int64 startTime = 3;
- int64 endTime = 4;
- repeated OrderItem sortBy = 5;
- bool ignoreTotal = 6; // 忽略总条数
- bool ignoreStat = 7; // 忽略总条数
- bool ignoreList = 8; // 忽略列表
- repeated int64 ids = 9;
- repeated string groupBy = 10;
- }
- message CommonResult {
- CommonResultCode code = 1;
- string msg = 2;
- }
- message BaseReq {
- int64 timeZoneOffset = 1;
- string lan = 2;
- }
- message DeleteIdResp { repeated int64 failedIds = 1; }
- message Ids { repeated int64 ids = 1; }
- message Request {}
- message Response { string msg = 1; }
- message TransactionOperation {
- string table = 1; // 表名
- string operate = 2; // delete,insert,update
- string data = 3; // json格式
- }
- message TransactionReq { repeated TransactionOperation transactions = 1; }
|