model

package
v0.0.0-...-20e2022 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package model 用户模型类

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateUser

func CreateOrUpdateUser(u *User) error

CreateOrUpdateUser 创建或修改用户密码

Types

type User

type User struct {
	ID       int64  `db:"id"`
	Username string `db:"username"`
	Password string `db:"password"`
}

User webui用户数据

func FindUser

func FindUser(username, password string) (u User, err error)

FindUser 查找webui账号

Jump to

Keyboard shortcuts

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