Documentation
¶
Index ¶
- type CRUDWeb
- func (web *CRUDWeb) CallRPC(c *gin.Context)
- func (web *CRUDWeb) CallRPC2(w http.ResponseWriter, r *http.Request)
- func (web *CRUDWeb) Create(c *gin.Context)
- func (web *CRUDWeb) Create2(w http.ResponseWriter, r *http.Request)
- func (web *CRUDWeb) List(c *gin.Context)
- func (web *CRUDWeb) List2(w http.ResponseWriter, r *http.Request)
- func (web *CRUDWeb) One(c *gin.Context)
- func (web *CRUDWeb) One2(w http.ResponseWriter, r *http.Request)
- func (web *CRUDWeb) Update(c *gin.Context)
- func (web *CRUDWeb) Update2(w http.ResponseWriter, r *http.Request)
- type Config
- type WebResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRUDWeb ¶
type CRUDWeb struct {
Crud kitty.CRUDInterface
Ctx externCtx
Params map[string]interface{}
WebResponse WebResponse
}
CRUDWeb web接口
func (*CRUDWeb) CallRPC2 ¶
func (web *CRUDWeb) CallRPC2(w http.ResponseWriter, r *http.Request)
CallRPC2 ..
type Config ¶
type Config struct {
Model interface{}
Ctx externCtx
DB *gorm.DB
RPC kitty.RPC
Callbk kitty.SuccessCallback
Params map[string]interface{}
WebResponse WebResponse
}
Config 配置
type WebResponse ¶
WebResponse default json output
Click to show internal directories.
Click to hide internal directories.