attach

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAttach

type IAttach interface {
	LoadData()
	Get(attachkind int64, attachtype int64) *Info
	SetValue(attachKind, attachType int64, SValue string, IValue int64)
	SetAttach(attach *Info)
	Save()
}

IAttach ...

type Info

type Info struct {
	Kind       int64  `json:"kind"`
	Types      int64  `json:"types"`
	SValue     string `json:"sValue"`
	IValue     int64  `json:"iValue"`
	UpdateTime int64  `json:"updateTime"`
	IsDirty    bool   `json:"-"`
	IsDBData   bool   `json:"isDBData"`
}

Info attach data

func NewInfo

func NewInfo(kind, types int64, isDBData bool) *Info

NewInfo ...

func (*Info) GetIValue

func (i *Info) GetIValue() int64

GetIValue ...

func (*Info) GetIsDBData

func (i *Info) GetIsDBData() bool

GetIsDBData ...

func (*Info) GetIsDirty

func (i *Info) GetIsDirty() bool

GetIsDirty ...

func (*Info) GetKind

func (i *Info) GetKind() int64

GetKind ...

func (*Info) GetSValue

func (i *Info) GetSValue() string

GetSValue ...

func (*Info) GetTypes

func (i *Info) GetTypes() int64

GetTypes ...

func (*Info) GetUpdateTime

func (i *Info) GetUpdateTime() int64

GetUpdateTime ...

func (*Info) SetIValue

func (i *Info) SetIValue(value int64)

SetIValue ...

func (*Info) SetSValue

func (i *Info) SetSValue(value string)

SetSValue ...

type Setting

type Setting struct {
	UserID string
}

Setting ...

type UserAttach

type UserAttach struct {
	// contains filtered or unexported fields
}

UserAttach ...

func NewUserAttach

func NewUserAttach(attSetting Setting) *UserAttach

NewUserAttach ...

func (*UserAttach) Get

func (us *UserAttach) Get(attachkind int64, attachtype int64) *Info

Get ...

func (*UserAttach) GetType

func (us *UserAttach) GetType(attachkind int64) *map[int64]*Info

GetType ...

func (*UserAttach) LoadData

func (us *UserAttach) LoadData()

LoadData ...

func (*UserAttach) Save

func (us *UserAttach) Save()

Save ...

func (*UserAttach) SetAttach

func (us *UserAttach) SetAttach(info *Info)

SetAttach ...

func (*UserAttach) SetDBValue

func (us *UserAttach) SetDBValue(attachKind, attachType int64, SValue string, IValue int64)

SetDBValue ...

func (*UserAttach) SetValue

func (us *UserAttach) SetValue(attachKind, attachType int64, SValue string, IValue int64)

SetValue ...

Jump to

Keyboard shortcuts

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