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; StatusDefault = 9; } enum BoolInt { BoolIntUnknown = 0; BoolIntTrue = 1; BoolIntFalse = 2; } enum UserType { UserTypeUnknown = 0; UserTypeDevice = 1; UserTypeAccount= 2; } enum AuthType { AuthTypeUnknown = 0; AuthTypeAuth = 1; AuthTypeCancel = 2; } enum UserLevel { UserLevelUnknown = 0; UserLevelTrial = 1;// 试用 1 UserLevelFree = 2; // 免费 2 UserLevelMember = 3; // 会员 3 UserLevelInternal = 9999; // 内部 9999 } 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; }