Golang Unbind示例

说明

golang unbind示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: Golang

命名空间/包名称: github.com/revel/revel

示例#1
文件: routes.go 项目: joho/firesize

func (_ tRegistrations) Create(
	account interface{},
	verifyEmail string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "account", account)
	revel.Unbind(args, "verifyEmail", verifyEmail)
	return revel.MainRouter.Reverse("Registrations.Create", args).Url
}

示例#2
文件: routes.go 项目: 11101171/whale

func (_ tTasks) TaskOperate(
	id string,
	task interface{},
) string {
	args := make(map[string]string)

	revel.Unbind(args, "id", id)
	revel.Unbind(args, "task", task)
	return revel.MainRouter.Reverse("Tasks.TaskOperate", args).Url
}

示例#3
文件: routes.go 项目: 11101171/whale

func (_ tTestRunner) Run(
	suite string,
	test string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "suite", suite)
	revel.Unbind(args, "test", test)
	return revel.MainRouter.Reverse("TestRunner.Run", args).Url
}

示例#4
文件: routes.go 项目: nangong92t/go_src

func (_ tLabel) Like(
	sid string,
	ids string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "sid", sid)
	revel.Unbind(args, "ids", ids)
	return revel.MainRouter.Reverse("Label.Like", args).Url
}

示例#5
文件: routes.go 项目: 11101171/whale

func (_ tServers) Operate(
	id string,
	server interface{},
) string {
	args := make(map[string]string)

	revel.Unbind(args, "id", id)
	revel.Unbind(args, "server", server)
	return revel.MainRouter.Reverse("Servers.Operate", args).Url
}

示例#6
文件: routes.go 项目: nangong92t/go_src

func (_ tAdmin) GetAllStat(
	sid string,
	date string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "sid", sid)
	revel.Unbind(args, "date", date)
	return revel.MainRouter.Reverse("Admin.GetAllStat", args).Url
}

示例#7
文件: routes.go 项目: nangong92t/go_src

func (_ tTopic) UnLike(
	sid string,
	id int64,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "sid", sid)
	revel.Unbind(args, "id", id)
	return revel.MainRouter.Reverse("Topic.UnLike", args).Url
}

示例#8
文件: routes.go 项目: xeb/flowdle

func (_ tTasks) Complete(
	id int,
	complete bool,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "id", id)
	revel.Unbind(args, "complete", complete)
	return revel.MainRouter.Reverse("Tasks.Complete", args).Url
}

示例#9
文件: routes.go 项目: baiyuxiong/lms

func (_ tApp) DoCheckLeave(
	id int,
	action string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "id", id)
	revel.Unbind(args, "action", action)
	return revel.MainRouter.Reverse("App.DoCheckLeave", args).Url
}

示例#10
文件: routes.go 项目: qtzheng/SIMP

func (_ tSystem) RoleFunc(
	roleID string,
	moduleID string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "roleID", roleID)
	revel.Unbind(args, "moduleID", moduleID)
	return revel.MainRouter.Reverse("System.RoleFunc", args).Url
}

示例#11
文件: routes.go 项目: karesti/cm-voting

func (_ tUsers) Login(
	login string,
	password string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "login", login)
	revel.Unbind(args, "password", password)
	return revel.MainRouter.Reverse("Users.Login", args).Url
}

示例#12
文件: routes.go 项目: stsmedia/ThingBricks

func (_ tAccountGroupController) Delete(
	accountId int64,
	id int64,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "accountId", accountId)
	revel.Unbind(args, "id", id)
	return revel.MainRouter.Reverse("AccountGroupController.Delete", args).Url
}

示例#13
文件: routes.go 项目: stsmedia/ThingBricks

func (_ tProjectController) One(
	accountId int64,
	id int64,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "accountId", accountId)
	revel.Unbind(args, "id", id)
	return revel.MainRouter.Reverse("ProjectController.One", args).Url
}

示例#14
文件: routes.go 项目: stsmedia/ThingBricks

func (_ tDataStreamGroupController) FindByProject(
	accountId int64,
	projectId int64,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "accountId", accountId)
	revel.Unbind(args, "projectId", projectId)
	return revel.MainRouter.Reverse("DataStreamGroupController.FindByProject", args).Url
}

示例#15
文件: routes.go 项目: nangong92t/go_src

func (_ tAccount) Login(
	username string,
	password string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "username", username)
	revel.Unbind(args, "password", password)
	return revel.MainRouter.Reverse("Account.Login", args).Url
}

示例#16
文件: routes.go 项目: baiyuxiong/lms

func (_ tAdmin) ListUser(
	limit int,
	offset int,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "limit", limit)
	revel.Unbind(args, "offset", offset)
	return revel.MainRouter.Reverse("Admin.ListUser", args).Url
}

示例#17
文件: routes.go 项目: nangong92t/go_src

func (_ tAccount) ChangePassword(
	sid string,
	password string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "sid", sid)
	revel.Unbind(args, "password", password)
	return revel.MainRouter.Reverse("Account.ChangePassword", args).Url
}

示例#18
文件: routes.go 项目: HyperVendy/HyperReplay-Replay-Experimental

func (_ tApp) UserDelete(
	region string,
	summonerId string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "region", region)
	revel.Unbind(args, "summonerId", summonerId)
	return revel.MainRouter.Reverse("App.UserDelete", args).Url
}

示例#19
文件: routes.go 项目: nangong92t/go_src

func (_ tAdmin) RemoveTopics(
	sid string,
	ids string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "sid", sid)
	revel.Unbind(args, "ids", ids)
	return revel.MainRouter.Reverse("Admin.RemoveTopics", args).Url
}

示例#20
文件: routes.go 项目: HyperVendy/HyperReplay-Replay-Experimental

func (_ tApp) GameDelete(
	platformId string,
	gameId string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "platformId", platformId)
	revel.Unbind(args, "gameId", gameId)
	return revel.MainRouter.Reverse("App.GameDelete", args).Url
}

示例#21
文件: routes.go 项目: nangong92t/go_src

func (_ tLabel) GetList(
	page int,
	limit int,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "page", page)
	revel.Unbind(args, "limit", limit)
	return revel.MainRouter.Reverse("Label.GetList", args).Url
}

示例#22
文件: routes.go 项目: HyperVendy/HyperReplay-Replay-Experimental

func (_ tApp) Summoner(
	region string,
	summonerName string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "region", region)
	revel.Unbind(args, "summonerName", summonerName)
	return revel.MainRouter.Reverse("App.Summoner", args).Url
}

示例#23
文件: routes.go 项目: 11101171/whale

func (_ tAgents) Operate(
	id string,
	agent interface{},
) string {
	args := make(map[string]string)

	revel.Unbind(args, "id", id)
	revel.Unbind(args, "agent", agent)
	return revel.MainRouter.Reverse("Agents.Operate", args).Url
}

示例#24
文件: routes.go 项目: HyperVendy/HyperReplay-Replay-Experimental

func (_ tApp) Metadata(
	region string,
	id string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "region", region)
	revel.Unbind(args, "id", id)
	return revel.MainRouter.Reverse("App.Metadata", args).Url
}

示例#25
文件: routes.go 项目: 11101171/whale

func (_ tServers) Encode(
	serverId string,
	apiParamId string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "serverId", serverId)
	revel.Unbind(args, "apiParamId", apiParamId)
	return revel.MainRouter.Reverse("Servers.Encode", args).Url
}

示例#26
文件: routes.go 项目: hansome92/server_john

func (_ tApiServers) Action(
	method string,
	id string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "method", method)
	revel.Unbind(args, "id", id)
	return revel.MainRouter.Reverse("ApiServers.Action", args).Url
}

示例#27
文件: routes.go 项目: 11101171/whale

func (_ tTasks) AjaxTaskLogList(
	page int,
	pageSize int,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "page", page)
	revel.Unbind(args, "pageSize", pageSize)
	return revel.MainRouter.Reverse("Tasks.AjaxTaskLogList", args).Url
}

示例#28
文件: routes.go 项目: nangong92t/go_src

func (_ tUser) Block(
	sid string,
	blocked int64,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "sid", sid)
	revel.Unbind(args, "blocked", blocked)
	return revel.MainRouter.Reverse("User.Block", args).Url
}

示例#29
文件: routes.go 项目: 11101171/whale

func (_ tStatic) Serve(
	prefix string,
	filepath string,
) string {
	args := make(map[string]string)

	revel.Unbind(args, "prefix", prefix)
	revel.Unbind(args, "filepath", filepath)
	return revel.MainRouter.Reverse("Static.Serve", args).Url
}

示例#30
文件: routes.go 项目: shunsugai/revel-sample-booking-postgres

func (_ tHotels) ConfirmBooking(
	id int,
	booking interface{},
) string {
	args := make(map[string]string)

	revel.Unbind(args, "id", id)
	revel.Unbind(args, "booking", booking)
	return revel.MainRouter.Reverse("Hotels.ConfirmBooking", args).Url
}

展开阅读全文