utils

package
v0.0.0-...-5209dc6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKey

func AddKey(name, str_weight, remark string) error

func AddMedia

func AddMedia(str_type_id, str_member_id, str_key_id, url, str_weight, remark string) error

func AddMediaType

func AddMediaType(name, str_width, str_height, remark string) error

func Substr

func Substr(str string, start, length int) string

字符串截取

func UpdateKey

func UpdateKey(str_id, name, str_weight, remark, status string) error

func UpdateMedia

func UpdateMedia(str_id, str_type_id, str_member_id, str_key_id, url, str_weight, remark, str_status string) error

func UpdateMediaType

func UpdateMediaType(str_id, name, str_width, str_height, remark, status string) error

Types

type Key

type Key struct {
	Id         int
	Name       string
	Status     int
	Weight     int
	Remark     string
	AddTime    string
	UpdateTime string
}

func ListKey

func ListKey(name, status, str_page_num, str_page_size string) ([]*Key, int, int, error)

func ViewKey

func ViewKey(id string) (*Key, error)

func (*Key) TableName

func (this *Key) TableName() string

type Media

type Media struct {
	Id         int
	TypeId     int
	MemberId   int
	KeyId      int
	Url        string
	Status     int
	Weight     int
	Remark     string
	AddTime    string
	UpdateTime string
}

func ListMedia

func ListMedia(type_id, member_id, key_id, status, str_page_num, str_page_size string) ([]*Media, int, int, error)

func ViewMedia

func ViewMedia(id string) (*Media, error)

func (*Media) TableName

func (this *Media) TableName() string

type MediaType

type MediaType struct {
	Id         int
	Name       string
	Width      int
	Height     int
	Remark     string
	Status     int
	AddTime    string
	UpdateTime string
}

func ListMediaType

func ListMediaType(name, status, str_page_num, str_page_size string) ([]*MediaType, int, int, error)

func ViewMediaType

func ViewMediaType(id string) (*MediaType, error)

func (*MediaType) TableName

func (this *MediaType) TableName() string

Jump to

Keyboard shortcuts

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