api

package
v0.0.0-...-acee36d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : apI_portal
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : base_c
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : get_c
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : partner_c.go
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : partner_c.go
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2014-02-05 21:53
  • description :
  • history :

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2014-02-05 21:53
  • description :
  • history :

Index

Constants

This section is empty.

Variables

View Source
var (
	Routes     web.Route = new(web.RouteMap)
	PathPrefix           = "/go2o_api_v1"
)

Functions

func ApiTest

func ApiTest(ctx *web.Context)

func CheckApiPermission

func CheckApiPermission(apiId string, secret string) (ok bool, partnerId int)

检查是否有权限

func Handle

func Handle(ctx *web.Context)

处理请求

func HandleUrlFunc

func HandleUrlFunc(v interface{}) func(*web.Context)

处理请求

Types

type BaseC

type BaseC struct {
}

func (*BaseC) CheckMemberToken

func (this *BaseC) CheckMemberToken(ctx *web.Context) bool

检查会员令牌信息

func (*BaseC) ErrorOutput

func (this *BaseC) ErrorOutput(ctx *web.Context, err string)

输出错误信息

func (*BaseC) GetMemberId

func (this *BaseC) GetMemberId(ctx *web.Context) int

获取会员编号

func (*BaseC) GetPartnerId

func (this *BaseC) GetPartnerId(ctx *web.Context) int

获取商户编号

func (*BaseC) RequestEnd

func (this *BaseC) RequestEnd(ctx *web.Context)

func (*BaseC) Requesting

func (this *BaseC) Requesting(ctx *web.Context) bool

type MemberC

type MemberC struct {
	*BaseC
}

func (*MemberC) Disconnect

func (this *MemberC) Disconnect(ctx *web.Context)

断开

func (*MemberC) Login

func (this *MemberC) Login(ctx *web.Context)

登陆

func (*MemberC) Register

func (this *MemberC) Register(ctx *web.Context)

注册

func (*MemberC) Requesting

func (this *MemberC) Requesting(ctx *web.Context) bool

会员登陆后才能调用接口

func (*MemberC) Summary

func (this *MemberC) Summary(ctx *web.Context)

汇总信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL