clinic

package
v0.0.0-...-6e4d488 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClinicNameScope

func ClinicNameScope(ClinicName string) func(db *gorm.DB) *gorm.DB

- ClinicName 诊所名称

func CreateClinic

func CreateClinic(ctx iris.Context)

CreateClinic 添加

func FindUuid

func FindUuid(scopes ...func(db *gorm.DB) *gorm.DB) (*user.Response, error)

Find

func IdScope

func IdScope(id string) func(db *gorm.DB) *gorm.DB

- id 用户id

func Party

func Party() module.WebModule

Party 用户

Types

type OaClinic

type OaClinic struct {
	gorm.Model
	ClinicUuid string `gorm:"index;type:char(42)" json:"clinic_uuid"`
	ClinicName string `gorm:"index;type:varchar(30)" json:"clinic_name" validate:"required"`
	UserUuid   string `gorm:"not null;type:char(36)" json:"user_uuid"`
	Address    string `gorm:"not null;type:varchar(255);" json:"address"`
	Enable     string `gorm:"not null;type:tinyint(1);default:1" json:"enable"`
	Remarks    string `gorm:"not null;type:varchar(150)" json:"remarks"`
	Province   uint   `gorm:"not null;type:smallint(5)" json:"province"`
	City       uint   `gorm:"not null;type:smallint(5)" json:"city"`
	County     uint   `gorm:"not null;type:smallint(5)" json:"county"`
}

func Add

func Add(req *Request) (*OaClinic, error)

func (*OaClinic) Add

func (item *OaClinic) Add(db *gorm.DB) (uint, error)

Create 添加

func (*OaClinic) TableName

func (m *OaClinic) TableName() string

表GORM模型的名称

type Request

type Request struct {
	OaClinic
}

func (*Request) Request

func (req *Request) Request(ctx iris.Context) error

type Response

type Response struct {
	OaClinic
}

func Find

func Find(scopes ...func(db *gorm.DB) *gorm.DB) (*Response, error)

Find

func (*Response) First

func (res *Response) First(db *gorm.DB, scopes ...func(db *gorm.DB) *gorm.DB) error

Jump to

Keyboard shortcuts

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