servicecategory

package
v8.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServiceCategory

func CreateServiceCategory(w http.ResponseWriter, r *http.Request)

CreateServiceCategory [Version : V5] function creates the service category with the passed name.

func DeleteServiceCategory

func DeleteServiceCategory(w http.ResponseWriter, r *http.Request)

DeleteServiceCategory [Version : V5] function deletes the service category passed.

func Get

func Get(w http.ResponseWriter, r *http.Request)

Get [Version : V5] function Process the *http.Request and writes the response. It uses GetServiceCategory function.

func GetServiceCategory

func GetServiceCategory(tx *sqlx.Tx, params map[string]string, useIMS bool, header http.Header) ([]tc.ServiceCategoryV5, time.Time, int, error, error)

GetServiceCategory [Version : V5] receives transactions from Get function and returns service_categories list.

func SelectMaxLastUpdatedQuery

func SelectMaxLastUpdatedQuery(where string) string

SelectMaxLastUpdatedQuery used for TryIfModifiedSinceQuery()

func Update

func Update(w http.ResponseWriter, r *http.Request)

func UpdateServiceCategory

func UpdateServiceCategory(w http.ResponseWriter, r *http.Request)

UpdateServiceCategory [Version : V5] function updates the name of the service category passed.

Types

type TOServiceCategory

type TOServiceCategory struct {
	api.APIInfoImpl `json:"-"`
	tc.ServiceCategory
}

func (*TOServiceCategory) Create

func (serviceCategory *TOServiceCategory) Create() (error, error, int)

func (*TOServiceCategory) Delete

func (serviceCategory *TOServiceCategory) Delete() (error, error, int)

func (*TOServiceCategory) DeleteQuery

func (v *TOServiceCategory) DeleteQuery() string

func (TOServiceCategory) GetAuditName

func (serviceCategory TOServiceCategory) GetAuditName() string

func (TOServiceCategory) GetKeyFieldsInfo

func (serviceCategory TOServiceCategory) GetKeyFieldsInfo() []api.KeyFieldInfo

func (TOServiceCategory) GetKeys

func (serviceCategory TOServiceCategory) GetKeys() (map[string]interface{}, bool)

Implementation of the Identifier, Validator interface functions

func (*TOServiceCategory) GetLastUpdated

func (v *TOServiceCategory) GetLastUpdated() (*time.Time, bool, error)

func (TOServiceCategory) GetType

func (serviceCategory TOServiceCategory) GetType() string

func (*TOServiceCategory) InsertQuery

func (v *TOServiceCategory) InsertQuery() string

func (*TOServiceCategory) NewReadObj

func (v *TOServiceCategory) NewReadObj() interface{}

func (*TOServiceCategory) ParamColumns

func (serviceCategory *TOServiceCategory) ParamColumns() map[string]dbhelpers.WhereColumnInfo

func (*TOServiceCategory) Read

func (serviceCategory *TOServiceCategory) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

func (*TOServiceCategory) SelectMaxLastUpdatedQuery

func (serviceCategory *TOServiceCategory) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string

func (*TOServiceCategory) SelectQuery

func (v *TOServiceCategory) SelectQuery() string

func (*TOServiceCategory) SetKeys

func (serviceCategory *TOServiceCategory) SetKeys(keys map[string]interface{})

func (*TOServiceCategory) SetLastUpdated

func (v *TOServiceCategory) SetLastUpdated(t tc.TimeNoMod)

func (*TOServiceCategory) UpdateQuery

func (v *TOServiceCategory) UpdateQuery() string

func (TOServiceCategory) Validate

func (serviceCategory TOServiceCategory) Validate() (error, error)

Jump to

Keyboard shortcuts

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