sysdict

package
v0.0.0-...-23c13d2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DictInit

func DictInit()

func GetDict

func GetDict(key string) map[string]string

根据字典编码获取字典

func InitWeiyiUploadConfig

func InitWeiyiUploadConfig() map[string]string

func SetDict

func SetDict(key string, data map[string]string)

func UpdateDict

func UpdateDict(key string)

更新字典

Types

type SysDictList

type SysDictList struct {
	ID         string `gorm:"primary_key" json:"id"  form:"id"` //
	ParentId   string `json:"parentId" form:"parentId"`         //
	ParentName string `json:"parentName" form:"code"`           //字典名称
	Value      string `json:"value"`                            //值
	Name       string `json:"name"`                             //名称
	Status     int    `json:"status"`                           //1正常,2停用,10已删除
	Sort       int    `json:"sort"`                             //排序
}

type WeiyiUploadConfig

type WeiyiUploadConfig struct {
	ID         string `gorm:"primary_key" json:"id" form:"id"` //
	ApiName    string `json:"api_name"`                        //接口类型
	Code       string `json:"code"`                            //接口编码
	URL        string `json:"url"`                             //接口url
	Username   string `json:"username"`                        //接口用户名
	Password   string `json:"password"`                        //接口密码
	IsOpen     int    `json:"is_open"`                         //开启上传
	PubKeyStr  string `json:"pubKeyStr"`
	UpdateTime int64  `json:"update_time"` //更新时间
}

Jump to

Keyboard shortcuts

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