package patient import ( "KYA/controllers" "KYA/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() }