video_collection

package
v0.0.0-...-77bf602 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceImpl

type ServiceImpl struct {
	p.UnimplementedVideoCollectionServer
	// contains filtered or unexported fields
}

func NewVideoCollectionService

func NewVideoCollectionService(metadata *appinfo.AppMetadata, helper *log.Helper, data *data.Data) *ServiceImpl

func (*ServiceImpl) Count

Count 根据req指定的查询条件获取记录列表 支持翻页和排序参数,支持查询条件参数类型自动转换 未赋值或或赋值为nil的字段不参与条件查询

func (*ServiceImpl) Create

Create 插入记录 包括表中所有字段,支持字段类型自动转换,支持对非主键且可为空字段不赋值 未赋值或赋值为nil的字段将被更新为 NULL 或数据库表指定的DEFAULT

func (*ServiceImpl) Delete

Delete 根据主键删除对应记录

func (*ServiceImpl) DeleteMulti

DeleteMulti 根据req指定的条件删除表中记录(可能多条) 未赋值或或赋值为nil的字段不参与条件查询

func (*ServiceImpl) Get

Get 根据主键/ID查询特定记录

func (*ServiceImpl) List

List 根据req指定的查询条件获取记录列表 支持翻页和排序参数,支持查询条件参数类型自动转换 未赋值或或赋值为nil的字段不参与条件查询

func (*ServiceImpl) One

One 根据req指定的查询条件获取单条数据 支持排序参数,支持查询条件参数类型自动转换 未赋值或或赋值为nil的字段不参与条件查询

func (*ServiceImpl) Update

Update 根据主键更新对应记录 支持字段类型自动转换,支持对非主键字段赋值/不赋值 未赋值或赋值为nil的字段不参与更新(即不会修改原记录的字段值)

func (*ServiceImpl) Upsert

Upsert 根据主键(或唯一索引)是否存在且已在req中赋值,更新或插入对应记录。 支持字段类型自动转换,支持对非主键字段赋值/不赋值 未赋值或赋值为nil的字段不参与更新/插入(即更新时不会修改原记录的字段值)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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