Home > Back-end >  30 webservice, it is necessary to use the factory pattern
30 webservice, it is necessary to use the factory pattern

Time:09-16

30 webservice is divided into 20 queries and 10 push, is utf-8/XML data format, the number of arguments, the same type, specific parameters is not the same, different request path,
It is necessary to use the factory pattern to separate 30 classes, the parameter is set to the static variables,
Or define two kinds, direct use and constructor?

CodePudding user response:

Webservice can realize push
  • Related