12345678910111213141516171819202122232425 |
- package patient
-
- import (
- "Kya_New/controllers"
- "Kya_New/enums"
- )
-
- func PatientRouter() {
-
- }
-
- type PatientMangement struct {
- controllers.BaseAPIController
- }
-
- func (this *PatientMangement) ServeFailJsonSend(code int, msg string) {
- this.Data["json"] = enums.MakeFailResponseJSON(msg, code)
- this.ServeJSON()
- }
-
- func (this *PatientMangement) ServeSuccessJSON(data map[string]interface{}) {
- this.Data["json"] = enums.MakeSuccessResponseJSON(data)
- this.ServeJSONP()
- }
|