common

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

*

  • 公共函数库
  • @author
  • @since 2021/3/2
  • @File : common

*

  • 数组处理类
  • @author
  • @since 2021/11/16
  • @File : list

Index

Constants

This section is empty.

Variables

View Source
var ADSORT_PLATFORM_LIST = map[int]string{
	1: "PC站",
	2: "WAP站",
	3: "小程序",
	4: "APP应用",
}

广告位所属平台

View Source
var AD_TYPE_LIST = map[int]string{
	1: "图片",
	2: "文字",
	3: "视频",
	4: "其他",
}

广告类型

View Source
var CITY_LEVEL = map[int]string{
	1: "省份",
	2: "城市",
	3: "县区",
	4: "街道",
}

城市等级

View Source
var CONFIG_DATA_TYPE_LIST = map[string]string{
	"text":     "单行文本",
	"textarea": "多行文本",
	"ueditor":  "富文本编辑器",
	"date":     "日期",
	"datetime": "时间",
	"number":   "数字",
	"select":   "下拉框",
	"radio":    "单选框",
	"checkbox": "复选框",
	"image":    "单张图片",
	"images":   "多张图片",
	"password": "密码",
	"icon":     "字体图标",
	"file":     "单个文件",
	"files":    "多个文件",
	"hidden":   "隐藏",
	"readonly": "只读文本",
}

配置项类型

View Source
var DEPT_TYPE_LIST = map[int]string{
	1: "公司",
	2: "子公司",
	3: "部门",
	4: "小组",
}

部门类型

View Source
var ITEM_TYPE_LIST = map[int]string{
	1: "国内站点",
	2: "国外站点",
	3: "其他站点",
}

站点类型

View Source
var LINK_FORM_LIST = map[int]string{
	1: "文字链接",
	2: "图片链接",
}

友链形式

View Source
var LINK_PLATFORM_LIST = map[int]string{
	1: "PC站",
	2: "WAP站",
	3: "小程序",
	4: "APP应用",
}

友链平台

View Source
var LINK_TYPE_LIST = map[int]string{
	1: "友情链接",
	2: "合作伙伴",
}

友链类型

View Source
var MEMBER_DEVICE_LIST = map[int]string{
	1: "苹果",
	2: "安卓",
	3: "WAP站",
	4: "PC站",
	5: "后台添加",
}

会员设备类型

View Source
var MEMBER_SOURCE_LIST = map[int]string{
	1: "注册会员",
	2: "马甲会员",
}

会员来源

View Source
var MENU_TYPE_LIST = map[int]string{
	0: "菜单",
	1: "节点",
}

菜单类型

View Source
var NOTICE_SOURCE_LIST = map[int]string{
	1: "内部通知",
	2: "外部通知",
}

通知来源

Functions

This section is empty.

Types

type ApiJsonResult

type ApiJsonResult struct {
	Code int         `json:"code"` // 响应编码:0成功 401请登录 403无权限 500错误
	Msg  string      `json:"msg"`  // 消息提示语
	Data interface{} `json:"data"` // 数据对象
}

type ArrayList

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

func New

func New(values ...interface{}) *ArrayList

func (*ArrayList) Add

func (list *ArrayList) Add(values ...interface{})

func (*ArrayList) Contains

func (list *ArrayList) Contains(value interface{}) bool

func (*ArrayList) Get

func (list *ArrayList) Get(index int) interface{}

func (*ArrayList) IsEmpty

func (list *ArrayList) IsEmpty() bool

func (*ArrayList) Remove

func (list *ArrayList) Remove(index int) interface{}

func (*ArrayList) Size

func (list *ArrayList) Size() int

type BunissType

type BunissType int
const (
	BOther BunissType = 0 //0其它
	BAdd   BunissType = 1 //1新增
	BEdit  BunissType = 2 //2修改
	BDel   BunissType = 3 //3删除
)

业务类型

type CaptchaRes

type CaptchaRes struct {
	Code  int         `json:"code"`  //响应编码 0 成功 500 错误 403 无权限
	Msg   string      `json:"msg"`   //消息
	Data  interface{} `json:"data"`  //数据内容
	IdKey string      `json:"idkey"` //验证码ID
}

type JsonResult

type JsonResult struct {
	Code  int         `json:"code"`  // 响应编码:0成功 401请登录 403无权限 500错误
	Msg   string      `json:"msg"`   // 消息提示语
	Data  interface{} `json:"data"`  // 数据对象
	Count int64       `json:"count"` // 记录总数
	Btype BunissType  `json:"btype"` // 业务类型
}

Jump to

Keyboard shortcuts

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