Documentation ¶
Index ¶
Constants ¶
View Source
const ( RECODE_OK = "0" RECODE_DBERR = "4001" RECODE_NODATA = "4002" RECODE_DATAEXIST = "4003" RECODE_DATAERR = "4004" RECODE_SESSIONERR = "4101" RECODE_LOGINERR = "4102" RECODE_PARAMERR = "4103" RECODE_USERERR = "4104" RECODE_ROLEERR = "4105" RECODE_PWDERR = "4106" RECODE_SMSERR = "4017" RECODE_REQERR = "4201" RECODE_IPERR = "4202" RECODE_THIRDERR = "4301" RECODE_IOERR = "4302" RECODE_SERVERERR = "4500" RECODE_UNKNOWERR = "4501" )
Variables ¶
View Source
var ( G_server_name string //项目名称 G_server_addr string //服务器ip地址 G_server_port string //服务器端口 G_redis_addr string //redis ip地址 G_redis_port string //redis port端口 G_redis_dbnum string //redis db 编号 G_mysql_addr string //mysql ip 地址 G_mysql_port string //mysql 端口 G_mysql_dbname string //mysql db name G_fastdfs_port string //fastdfs 端口 G_fastdfs_addr string //fastdfs ip )
Functions ¶
func AddDomain2Url ¶
func InitConfig ¶
func InitConfig()
func RecodeText ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.