api

package
v0.0.0-...-0eb9a37 Latest Latest
Warning

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

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

Documentation

Overview

*

  • Copyright 2015 @ S1N1 Team.
  • name : apI_portal
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ S1N1 Team.
  • name : base_c
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ S1N1 Team.
  • name : partner_c.go
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ S1N1 Team.
  • name : partner_c.go
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

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

*

  • Copyright 2014 @ S1N1 Team.
  • 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)
)

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)

处理请求

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

func (this *BaseC) JsonOutput(ctx *web.Context, v interface{})

输出Json

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

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

会员登陆后才能调用接口

Jump to

Keyboard shortcuts

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