mongodb_domain

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseDmlModel

type BaseDmlModel interface {
	GetId() string
	SetId(id string)
	SetCreatedBy(by string)
	SetCreatedOn(on string)
	SetModifiedBy(by string)
	SetModifiedOn(on string)
}

type DmlModel

type DmlModel struct {
	Id         string `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedOn  string `json:"createdOn,omitempty" bson:"createdOn,omitempty"`
	CreatedBy  string `json:"createdBy" bson:"createdBy"`
	ModifiedOn string `json:"modifiedOn,omitempty" bson:"modifiedOn,omitempty"`
	ModifiedBy string `json:"modifiedBy" bson:"modifiedBy"`
}

func (*DmlModel) GetId

func (d *DmlModel) GetId() string

Implement Auditable interface

func (*DmlModel) SetCreatedBy

func (d *DmlModel) SetCreatedBy(by string)

func (*DmlModel) SetCreatedOn

func (d *DmlModel) SetCreatedOn(on string)

func (*DmlModel) SetId

func (d *DmlModel) SetId(id string)

func (*DmlModel) SetModifiedBy

func (d *DmlModel) SetModifiedBy(by string)

func (*DmlModel) SetModifiedOn

func (d *DmlModel) SetModifiedOn(on string)

type ResponseModel added in v1.1.8

type ResponseModel struct {
	Error   bool   `json:"error" bson:"error"`
	Message string `json:"message" bson:"message"`
	Code    int    `json:"code" bson:"code"`
	Data    any    `json:"data" bson:"data"`
}

Jump to

Keyboard shortcuts

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