service_model_mapping

package
v1.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IServiceModelMappingService

type IServiceModelMappingService interface {
	Get(ctx context.Context, sid string) (*ModelMapping, error)
	Save(ctx context.Context, input *Save) error
	Delete(ctx context.Context, sid string) error
}

type ModelMapping

type ModelMapping struct {
	ID       int64     `json:"id"`
	Sid      string    `json:"sid"`
	Content  string    `json:"content"`
	Creator  string    `json:"creator"`
	Updater  string    `json:"updater"`
	CreateAt time.Time `json:"create_at"`
	UpdateAt time.Time `json:"update_at"`
}

func FromEntity

func FromEntity(e *service.ModelMapping) *ModelMapping

type Save

type Save struct {
	Sid     string `json:"sid" validate:"required"`
	Content string `json:"content" validate:"required"`
}

Jump to

Keyboard shortcuts

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