Esempio n. 1
0
func init() {
	moduleName := "Player"
	methodName := "Relogin"
	methodDesc := "玩家重新登陆"
	methodAuthor := "左贤清"
	methodMendor := ""
	methodDate := "2016-03-24 13:00:00"
	methodInParam := []string{"string:玩家Id"}
	methodOutParam := ""
	web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam)
}
Esempio n. 2
0
func init() {
	moduleName := "Player"
	methodName := "AddMoney"
	methodDesc := "增加货币"
	methodAuthor := "左贤清"
	methodMendor := ""
	methodDate := "2016-03-24 13:00:00"
	methodInParam := []string{"int:需要增加的vipExp", "int:需要增加的砖石", "int:需要增加的金币"}
	methodOutParam := ""
	web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam)
}
Esempio n. 3
0
func init() {
	moduleName := "Player"
	methodName := "Login"
	methodDesc := "玩家登陆"
	methodAuthor := "左贤清"
	methodMendor := ""
	methodDate := "2016-03-24 13:00:00"
	methodInParam := []string{"int:合作商Id", "int:服务器Id", "string:平台用户Id"}
	methodOutParam := ""
	web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam)
}
Esempio n. 4
0
func init() {
	moduleName := "Player"
	methodName := "AddLvAndExp"
	methodDesc := "增加等级和经验值"
	methodAuthor := "左贤清"
	methodMendor := ""
	methodDate := "2016-03-24 13:00:00"
	methodInParam := []string{"int:需要增加的等级", "int:需要增加的经验值"}
	methodOutParam := ""
	web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam)
}
Esempio n. 5
0
func init() {
	moduleName := "Player"
	methodName := "AlterName"
	methodDesc := "修改玩家名称"
	methodAuthor := "左贤清"
	methodMendor := ""
	methodDate := "2016-03-24 13:00:00"
	methodInParam := []string{"string:新的玩家名称"}
	methodOutParam := ""
	web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam)
}
Esempio n. 6
0
func init() {
	moduleName := "Test"
	methodName := "Sub"
	methodDesc := "减法"
	methodAuthor := "左贤清"
	methodMendor := "Jordan"
	methodDate := "2016-03-24 13:00:00"
	methodInParam := []string{"int:减数", "int:被减数"}
	methodOutParam := "差"
	web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam)
}
Esempio n. 7
0
func init() {
	moduleName := "Test"
	methodName := "Add"
	methodDesc := "加法"
	methodAuthor := "左贤清"
	methodMendor := ""
	methodDate := "2016-03-24 13:00:00"
	methodInParam := []string{"int:加数", "int:被加数"}
	methodOutParam := "和"
	web.RegisterMethodRemark(moduleName, methodName, methodDesc, methodAuthor, methodMendor, methodDate, methodInParam, methodOutParam)
}
Esempio n. 8
0
// 注册客户端的接口文档信息(包括每个方法前面的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)
}