首页 > TAG信息列表 > apiCode

MySQL导出查询结果

##select * from login_api_cases where apiCode = "1.3" into outfile "D:\a.xlsx"; #导出excel格式 -- select * from login_api_cases where apiCode = "1.3" into outfile "D:\a2.csv" FIELDS TERMINATED BY ',' ; #导出cs

[Go] go语言gin框架封装返回的错误码类

当需要接口返回错误信息的时候 尽量不要硬编码在接口返回对方 可以封装一个错误码类 类似下面这样 演示 types/api_code.go package types type Codes struct { SUCCESS uint FAILED uint CnMessage map[uint]string EnMessage map[uint]string LANG

[PHP] laravel的异常处理

laravel默认的异常处理是展示出异常的界面,不能够完善的捕获异常并响应为json格式数据 需要修改下以下文件 app/Exceptions/Handler.php   <?php namespace App\Exceptions; use App\Lib\ApiHelper\ApiCode; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler

apiCode/1/1.1/1.1.1

public abstract class myClass { private string id = ""; private string name = ""; public string ID { get{ return id }; set{ id = value}; } public string Name { get{ return name}; set{ name = value}; } public abs