contentsetting

package
v0.0.0-...-fbda54b Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentSetting

func ContentSetting(ctx context.Context, client *ent.Client, name string) (*ent.ContentSetting, error)

ContentSetting read a ContentSetting by name

func ContentSettings

func ContentSettings(ctx context.Context, client *ent.Client) ([]*ent.ContentSetting, error)

ContentSettings filter ContentSettings

func Create

func Create(ctx context.Context, client *ent.Client, input *model.SetContentSettingIn) (*ent.ContentSetting, error)

Create new ContentSetting

func Delete

func Delete(ctx context.Context, client *ent.Client, id *int) error

Delete a ContentSetting

func Set

Set a ContentSetting: if not exists create new, else update

Types

This section is empty.

Jump to

Keyboard shortcuts

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