// 注册客户端的接口文档信息(包括每个方法前面的init方法) func init() { // 注册模块接口信息 moduleName := "Test" moduleDesc := "测试模块" moduleAuthor := "左贤清" moduleMendor := "" moduleDate := "2016-03-24 13:00:00" web.RegisterModuleRemark(moduleName, moduleDesc, moduleAuthor, moduleMendor, moduleDate) // 注册服务器推送方法的接口信息 }
// 注册客户端的接口文档信息(包括每个方法前面的init方法) func init() { // 注册模块接口信息 moduleName := "Player" moduleDesc := "玩家模块" moduleAuthor := "左贤清" moduleMendor := "" moduleDate := "2016-03-24 13:00:00" web.RegisterModuleRemark(moduleName, moduleDesc, moduleAuthor, moduleMendor, moduleDate) // 注册服务器推送方法的接口信息 methodName := "Push" methodDesc := "推送玩家信息" methodAuthor := "左贤清" methodMendor := "" methodDate := "2016-03-24 13:00:00" methodInParam := []string{} methodOutParam := "{PlayerInfo:{Name,Lv,Exp,VipExp,Diamond,Gold中的一个或多个属性}}" web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam) }