'use strict';
/**
 * base service
 * @type {Class}
 */
export default class extends think.base {
  /**
   * get model instance
   * @return {} []
   */
  model(name, options, module){
    if(think.isString(options) && think.module.indexOf(options) > -1){
      module = options;
      options = {};
    }
    module = module || this.parseModuleFromPath();
    if(think.isString(options)){
      options = {type: options};
    }
    options = think.extend({}, think.config('db', undefined, module), options);
    return think.model(name, options, module);
  }
}
@@ -552,9 +552,177 @@
 e);%0A  %7D%0A
+  /**%0A   * get service%0A   * @return %7B%7D %5B%5D%0A   */%0A  service(name, module)%7B%0A    module = module %7C%7C this.parseModuleFromPath();%0A    return think.service(name, module);%0A  %7D%0A
 %7D

Add service method in Service class, fix #358