NewUserExampleServer create a new service
()
| 38 | |
| 39 | // NewUserExampleServer create a new service |
| 40 | func NewUserExampleServer() serverNameExampleV1.UserExampleServer { |
| 41 | return &userExample{ |
| 42 | iDao: dao.NewUserExampleDao( |
| 43 | database.GetDB(), // todo show db driver name here |
| 44 | cache.NewUserExampleCache(database.GetCacheType()), |
| 45 | ), |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // Create a new userExample |
| 50 | func (s *userExample) Create(ctx context.Context, req *serverNameExampleV1.CreateUserExampleRequest) (*serverNameExampleV1.CreateUserExampleReply, error) { |
no test coverage detected