在windows上使用Thrift生成PHP代码
2017-10-12 11:50
363 查看
参考地址:
http://www.cnblogs.com/qufo/p/5607653.html http://courages.us/archives/621 https://www.xxling.com/blog/article/3110.aspx
IDL例子
View Code
http://www.cnblogs.com/qufo/p/5607653.html http://courages.us/archives/621 https://www.xxling.com/blog/article/3110.aspx
IDL例子
namespace php thrift struct commonResult{ 1:i16 code, 2:string msg, } struct upgradeApkResult{ 1:commonResult commonResult, 2:list<string> data, } struct outDetails{ 1:i8 noseIndex, 2:i16 ticketNum, 3:string ticketType, } struct getDevStatusResult{ 1:commonResult commonResult, 2:list<returnDevStatus> data, } struct returnDevStatus{ 1:string clientver, 2:string deviceNumber, 3:i64 machineVersion, 4:bool scanSupport, 5:bool scanWorker, 6:bool infraredSupport, 7:bool infraredWorker, 8:list<noseinfo> noseInfo, } struct noseinfo{ 1:bool noseSupport, 2:bool noseWorker, 3:i64 noseIndex, 4:i64 ticketSize, 5:i64 ticketCount, 6:i64 ticketType, } service LotteryService { upgradeApkResult upgradeApk(1:string apkName,2:string apkVersion,3:string apkUrl,4:set<string> devIds), commonResult checkMachine(1:string machineCode,2:bool isRun,3:string textMsg), commonResult outTicket(1:string machineCode,2:i64 statu,3:string orderCode,4:list<outDetails> outDetails), getDevStatusResult getDevStatus(1:list<string> id) }
View Code
相关文章推荐
- 在windows上使用Thrift生成PHP代码
- win下使用thrift生成gen-php文件代码
- 使用swig从c/c++代码生成java/python/R/php...代码
- PowerShell 2.0之使用WMI管理Windows(五)生成WMI代码 推荐
- onvif学习笔记4:Windows环境使用gsoap生成onvif框架代码
- 在windows下,git webhook使用php拉取代码的学习总结
- 使用PHP_UML生成代码的UML图
- php生成缩略图示例代码分享(使用gd库实现)
- PHP随机数生成代码与使用实例分析
- windows环境PhpStorm中简单使用PHP_CodeSniffer规范php代码
- PowerShell 2.0之使用WMI管理Windows(五)生成WMI代码
- thrift使用(2):代码生成和接口调用
- windows下使用 ApiGen 生成php项目的开发文档
- php代码生成字典表数组,在js中使用
- PHP 使用Echarts生成数据统计报表的实现代码
- 通过PHP5.6源代码在WINDOWS 7下进行编译生成(最详细步骤)
- 一种最好用的php生成excel的代码 适用于windows和linux
- onvif学习笔记3:Windows环境使用gsoap生成onvif框架代码
- thrift生成php代码不完整问题(thrift接口定义文件中含include)
- 在 Linux/windows下 命令行中使用和执行 PHP 代码[交互式php]