model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BfsEasyPath   = "/bfs/mcn"
	TimeFormatSec = "2006-01-02 15:04:05"
	TimeFormatDay = "2006-01-02"
)

const .

Variables

This section is empty.

Functions

func BuildBfsURL

func BuildBfsURL(raw string, appkey, secret, bucket, ePath string) string

BuildBfsURL is.

func ToFixed

func ToFixed(num float64, precision int) float64

ToFixed fix float precision

Types

type ExportArg

type ExportArg struct {
	Export string `form:"export"`
}

ExportArg export arg

func (*ExportArg) ExportFormat

func (e *ExportArg) ExportFormat() string

ExportFormat export format

type MCNSignState

type MCNSignState int8

MCNSignState .

const (
	// MCNSignStateNoApply 未申请
	MCNSignStateNoApply MCNSignState = 0
	// MCNSignStateOnReview 待审核
	MCNSignStateOnReview MCNSignState = 1
	// MCNSignStateOnReject 已驳回
	MCNSignStateOnReject MCNSignState = 2
	// MCNSignStateOnSign 已签约
	MCNSignStateOnSign MCNSignState = 10
	// MCNSignStateOnCooling 冷却中
	MCNSignStateOnCooling MCNSignState = 11
	// MCNSignStateOnExpire 已到期
	MCNSignStateOnExpire MCNSignState = 12
	// MCNSignStateOnBlock 封禁
	MCNSignStateOnBlock MCNSignState = 13
	// MCNSignStateOnClear 清退
	MCNSignStateOnClear MCNSignState = 14
	// MCNSignStateOnPreOpen 待开启
	MCNSignStateOnPreOpen MCNSignState = 15
	// MCNSignStateOnDelete 移除
	MCNSignStateOnDelete MCNSignState = 100
)

const .

type MCNUPState

type MCNUPState int8

MCNUPState .

const (
	// MCNUPStateNoAuthorize 未授权
	MCNUPStateNoAuthorize MCNUPState = 0
	// MCNUPStateOnRefuse 已拒绝
	MCNUPStateOnRefuse MCNUPState = 1
	// MCNUPStateOnReview 审核中
	MCNUPStateOnReview MCNUPState = 2
	// MCNUPStateOnReject 已驳回
	MCNUPStateOnReject MCNUPState = 3
	// MCNUPStateOnSign 已签约
	MCNUPStateOnSign MCNUPState = 10
	// MCNUPStateOnCooling 已冻结
	MCNUPStateOnCooling MCNUPState = 11
	// MCNUPStateOnExpire 已到期
	MCNUPStateOnExpire MCNUPState = 12
	// MCNUPStateOnBlock 封禁
	MCNUPStateOnBlock MCNUPState = 13
	// MCNUPStateOnClear 已解约
	MCNUPStateOnClear MCNUPState = 14
	// MCNUPStateOnPreOpen 待开启
	MCNUPStateOnPreOpen MCNUPState = 15
	// MCNUPStateOnDelete 删除
	MCNUPStateOnDelete MCNUPState = 100
)

const .

type PageArg

type PageArg struct {
	Page int `form:"page"`
	Size int `form:"size"`
}

PageArg page arg

func (*PageArg) CheckPageValidation

func (arg *PageArg) CheckPageValidation() (limit, offset int)

CheckPageValidation check the page validte, return limit offset

func (*PageArg) ToPageResult

func (arg *PageArg) ToPageResult(total int) (res PageResult)

ToPageResult cast to page result

type PageResult

type PageResult struct {
	Page       int `json:"page"`
	TotalCount int `json:"total_count"`
}

PageResult page result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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