syntax = "proto3"; package gorpc; option go_package = "code.clickto.dev/nomo-server/go-service-pb/client"; import "pb/common.proto"; // Account message AccountVo { int64 id = 1; // 主键ID string userUuid = 2; // 用户UUID string productCode = 3; // 产品ID string username = 4; // 用户名 string password = 5; // 密码 string accountKey = 6; // 账号KEY string accountPassword = 7; // 账号密码 int64 accountType = 8; // 账号类型 int64 registMode = 9; // 注册方式 string provider = 10; // 授权登录标识 BoolInt whitelistUser = 11; // 白名单用户 BoolInt activated = 12; // 是否激活 string config = 13; // 配置 Status status = 14; // 状态 string avatar = 15; // 头像 string area = 16; // 指定地区 string remark = 17; // 备注 string deviceId = 18; // 设备ID string platform = 19; // 平台 string channel = 20; // 渠道 string deviceModel = 21; // 设备型号 string deviceOs = 22; // 设备系统 int64 timezone = 23; // 时区 string lang = 24; // 语言 string ip = 25; // IP string country = 26; // 国家 string province = 27; // 省份 string city = 28; // 城市 string isp = 29; // ISP int64 appVer = 30; // 产品版本号 int64 appRuntimeCode = 31; // 产品运行码 int64 createTime = 32; // 创建时间 int64 updateTime = 33; // 更新时间 string version = 34; // 数据版本 string sessionId = 35; // 登录凭证 int64 sessionCreateTime = 36; // 凭证创建时间 } message AccountListReq { Page page = 1; AccountVo vo = 2; repeated string productCodes = 3; // 产品code repeated int64 excludeIds = 4; // 排除的ID } message AccountListResp { int64 total = 1; repeated AccountVo list = 2; } // AccountDevice message AccountDeviceVo { int64 id = 1; int64 accountId = 2; // 用户ID int64 deviceId = 3; // 设备ID string sessionId = 4; // 登录凭证 int64 sessionCreateTime = 5; // 凭证创建时间 int64 updateTime = 6; int64 createTime = 7; } message AccountDeviceListReq { Page page = 1; AccountDeviceVo vo = 2; repeated int64 excludeIds = 3; // 排除的ID } message AccountDeviceListResp { int64 total = 1; repeated AccountDeviceVo list = 2; } message DeviceVo { int64 id = 1; string userUuid = 2; string productCode = 3; string deviceId = 4; string accountKey = 5; string accountPassword = 6; string platform = 7; string channel = 8; string referChannel = 9; string deviceModel = 10; string deviceOs = 11; int64 timezone = 12; string lang = 13; int64 appVer = 14; string ip = 15; string country = 16; string province = 17; string city = 18; string isp = 19; int64 createTime = 20; int64 updateTime = 21; Status status = 22; string refer = 23; int64 whitelistUser = 24; // 白名单用户 1正常用户 2: 白名单用户 int64 testUser = 25; // 测试用户 1正常用户 2: 测试用户 string mockCountry = 26; // 指定国家 string mockApi = 27; // 指定API string mockRouter = 28; // 指定路由 string referSubChannel = 29; } message DeviceListReq { Page page = 1; DeviceVo vo = 2; repeated string productCodes = 3; // 产品code repeated int64 excludeIds = 4; // 排除的ID repeated string dateRange = 5; // 日期范围 int64 createStartTime = 6; // 创建开始时间 int64 createEndTime = 7; // 创建结束时间 } message DeviceListRes { int64 total = 1; repeated DeviceVo list = 2; } message UserAppConfigVo { int64 id = 1; string deviceId = 2; string key = 3; string value = 4; Status status = 5; int64 createTime = 6; int64 updateTime = 7; } message UserAppConfigGetReq { UserAppConfigVo vo = 1; } message UserAppConfigListReq { Page page = 1; UserAppConfigVo vo = 2; } message UserAppConfigListRes { int64 total = 1; repeated UserAppConfigVo list = 2; } // 用户模块 service GoUserClient { rpc Ping(Request) returns (Response); // 用户app配置管理(ring) rpc UserAppConfigAdd(UserAppConfigVo) returns (UserAppConfigVo); rpc UserAppConfigUpdate(UserAppConfigVo) returns (UserAppConfigVo); rpc UserAppConfigDel(Ids) returns (Empty); rpc UserAppConfigGet(UserAppConfigGetReq) returns (UserAppConfigVo); rpc UserAppConfigList(UserAppConfigListReq) returns (UserAppConfigListRes); // 设备管理 rpc DeviceAdd(DeviceVo) returns (DeviceVo); rpc DeviceUpdate(DeviceVo) returns (DeviceVo); rpc DeviceDel(Ids) returns (Empty); rpc DeviceGet(DeviceVo) returns (DeviceVo); rpc DeviceList(DeviceListReq) returns (DeviceListRes); // Account rpc AccountAdd(AccountVo) returns (AccountVo); rpc AccountUpdate(AccountVo) returns (AccountVo); rpc AccountDel(Ids) returns (Empty); rpc AccountGet(AccountVo) returns (AccountVo); rpc AccountList(AccountListReq) returns (AccountListResp); // AccountDevice rpc AccountDeviceAdd(AccountDeviceVo) returns (AccountDeviceVo); rpc AccountDeviceUpdate(AccountDeviceVo) returns (AccountDeviceVo); rpc AccountDeviceDel(Ids) returns (Empty); rpc AccountDeviceGet(AccountDeviceVo) returns (AccountDeviceVo); rpc AccountDeviceList(AccountDeviceListReq) returns (AccountDeviceListResp); }