api

package
v0.0.0-...-33ecd2b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: Apache-2.0 Imports: 21 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 : model
  • author : jarryliu
  • date : 2015-10-31 00:35
  • 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 AsyncResult

type AsyncResult struct {
	MemberId       int  // 会员编号
	MemberUpdated  bool //会员已经更新
	AccountUpdated bool //会员账户已经更新
}

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) Account

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

获取最新的会员账户信息

func (*MemberC) Async

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

同步

func (*MemberC) Disconnect

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

断开

func (*MemberC) Get

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

获取最新的会员信息

func (*MemberC) Login

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

登陆

func (*MemberC) Ping

func (this *MemberC) Ping(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