model

package
v0.0.0-...-5384eee Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLenBigThan1 = NewErr("len(*)>1,already exist")
View Source
var ErrLenEqual0 = NewErr("len(*)==0,not found")
View Source
var ErrLenNotEqual1 = NewErr("len(*)!=1,create failed")
View Source
var FieldCannotupdate = "there fields can't updated"

Functions

func NewErr

func NewErr(detail string) error

func NewErrData

func NewErrData(detail string, data interface{}) error

Types

type CommonResp

type CommonResp struct {
	Error  interface{}
	Code   int
	Result interface{}
	Total  *int64
}

type Err

type Err struct {
	Detail string
	Data   interface{}
}

func (Err) Error

func (e Err) Error() string

type Miniocon

type Miniocon struct {
	ID int
	//Endpoint 对象存储服务的URL
	Endpoint string
	//AccessKeyID Access key是唯一标识你的账户的用户ID。
	Ak string `gorm:"ak"`
	//SecretAccessKey 	Secret key是你账户的密码。
	Sk string `gorm:"sk"`
	// Secure true代表使用HTTPS
	Secure bool
}

type Object4d

type Object4d struct {
	T           string
	Lng, Lat, H string
	M           int
}

func ParseObject4d

func ParseObject4d(rawpath string) *Object4d

func (Object4d) Bucket

func (o Object4d) Bucket() string

func (Object4d) Objectname

func (o Object4d) Objectname() string

func (Object4d) Url

func (o Object4d) Url() string

Jump to

Keyboard shortcuts

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