operation

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Types = []string{
		"uptool",
		"promote",
	}
)

Types

Functions

This section is empty.

Types

type ArgOp

type ArgOp struct {
	Tp    string `form:"tp"`
	Count int    `form:"count" validate:"min=0"`
	Rank  int    `form:"rank" validate:"min=0"`
}

ArgOp ArgOp

type ArgPromote

type ArgPromote struct {
	Tp    string `form:"tp" validate:"required"`
	Count int    `form:"count" validate:"min=0"`
	Rank  int    `form:"rank" validate:"min=0"`
}

ArgPromote strcuct

type Operation

type Operation struct {
	ID      int64  `json:"-"`
	Type    string `json:"-"`
	Message string `json:"message"`
	Link    string `json:"link"`
	Pic     string `json:"pic,omitempty"`
	Ads     int    `json:"ads,omitempty"`
	Rank    int    `json:"rank"`
	Aid     int64  `json:"-"`
}

Operation struct

type Promote

type Promote struct {
	IsAd    int8     `json:"is_ad"`
	Archive *api.Arc `json:"archive"`
}

Promote strcuct

Jump to

Keyboard shortcuts

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