srv

package
v0.0.0-...-6312fd5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddTpl = `` /* 5105-byte string literal not displayed */
View Source
var GetTpl = `` /* 7023-byte string literal not displayed */
View Source
var ListTpl = `` /* 1931-byte string literal not displayed */
View Source
var SrvCustomerListTpl = `` /* 1199-byte string literal not displayed */
View Source
var SrvCustomerProcTpl = `` /* 4142-byte string literal not displayed */
View Source
var SrvGetTpl = `` /* 1469-byte string literal not displayed */
View Source
var SrvListTpl = `` /* 2825-byte string literal not displayed */

Functions

func IsAInB

func IsAInB(a string, b string) (ok bool)

Types

type FieldValueDesc

type FieldValueDesc struct {
	Value string
	Desc  string
}

func ParseFieldParam

func ParseFieldParam(param string) (valueDescs []*FieldValueDesc, err error)

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Srv

type Srv struct {
	lib.Base
}

func (*Srv) Add

func (srv *Srv) Add(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) Delete

func (srv *Srv) Delete(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) FieldValue

func (srv *Srv) FieldValue(field *srv_model.SrvField, value string) (ret interface{}, err error)

func (*Srv) FormToMap

func (srv *Srv) FormToMap(r *http.Request, srvActionField *srv_model.SrvActionField) (result map[string]interface{}, err error)

func (*Srv) Get

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

@prefilter("Auth") @postfilter("Boss")

func (*Srv) List

func (srv *Srv) List(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) SrvCustomerList

func (srv *Srv) SrvCustomerList(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) SrvCustomerProc

func (srv *Srv) SrvCustomerProc(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) SrvDelete

func (srv *Srv) SrvDelete(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) SrvGet

func (srv *Srv) SrvGet(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) SrvList

func (srv *Srv) SrvList(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) SrvUpdate

func (srv *Srv) SrvUpdate(w http.ResponseWriter, r *http.Request)

@prefilter("Auth") @postfilter("Boss")

func (*Srv) Update

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

@prefilter("Auth") @postfilter("Boss")

func (*Srv) WriteJson

func (srv *Srv) WriteJson(w http.ResponseWriter, body []byte)

Jump to

Keyboard shortcuts

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