controller

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDemo

func AddDemo(data *model.Demo) (int64, error)

添加数据

func AddVpn

func AddVpn(data *model.Vpn) (int64, error)

添加数据

func DelDemo

func DelDemo(id string) (int64, error)

删除数据

func DelVpn

func DelVpn(id string) (int64, error)

删除数据

func GetByUUIDDemo

func GetByUUIDDemo(uuid string) (*model.Demo, bool, error)

根据id查询

func GetByUUIDVpn

func GetByUUIDVpn(uuid string) (*model.Vpn, bool, error)

根据id查询

func ListDemo

func ListDemo() (*[]model.Demo, error)

全量数据

func ListVpn

func ListVpn() (*[]model.Vpn, error)

全量数据

func MultiInsertDemo

func MultiInsertDemo(beans ...interface{}) (int64, error)

批量导入

func MultiInsertVpn

func MultiInsertVpn(beans ...interface{}) (int64, error)

批量导入

func PageDemo

func PageDemo(page, pageSize int) (*[]model.Demo, error)

获取分页数据

func PageVpn

func PageVpn(page, pageSize int) (*[]model.Vpn, error)

获取分页数据

func UpdateDemo

func UpdateDemo(id string, data *model.Demo) (int64, error)

更新数据

func UpdateVpn

func UpdateVpn(id string, data *model.Vpn) (int64, error)

更新数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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