Documentation ¶
Index ¶
- func CreateServiceCategory(w http.ResponseWriter, r *http.Request)
- func DeleteServiceCategory(w http.ResponseWriter, r *http.Request)
- func Get(w http.ResponseWriter, r *http.Request)
- func GetServiceCategory(tx *sqlx.Tx, params map[string]string, useIMS bool, header http.Header) ([]tc.ServiceCategoryV5, time.Time, int, error, error)
- func SelectMaxLastUpdatedQuery(where string) string
- func Update(w http.ResponseWriter, r *http.Request)
- func UpdateServiceCategory(w http.ResponseWriter, r *http.Request)
- type TOServiceCategory
- func (serviceCategory *TOServiceCategory) Create() (error, error, int)
- func (serviceCategory *TOServiceCategory) Delete() (error, error, int)
- func (v *TOServiceCategory) DeleteQuery() string
- func (serviceCategory TOServiceCategory) GetAuditName() string
- func (serviceCategory TOServiceCategory) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (serviceCategory TOServiceCategory) GetKeys() (map[string]interface{}, bool)
- func (v *TOServiceCategory) GetLastUpdated() (*time.Time, bool, error)
- func (serviceCategory TOServiceCategory) GetType() string
- func (v *TOServiceCategory) InsertQuery() string
- func (v *TOServiceCategory) NewReadObj() interface{}
- func (serviceCategory *TOServiceCategory) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (serviceCategory *TOServiceCategory) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (serviceCategory *TOServiceCategory) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
- func (v *TOServiceCategory) SelectQuery() string
- func (serviceCategory *TOServiceCategory) SetKeys(keys map[string]interface{})
- func (v *TOServiceCategory) SetLastUpdated(t tc.TimeNoMod)
- func (v *TOServiceCategory) UpdateQuery() string
- func (serviceCategory TOServiceCategory) Validate() (error, error)
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 ¶
SelectMaxLastUpdatedQuery used for TryIfModifiedSinceQuery()
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) 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)
Click to show internal directories.
Click to hide internal directories.