feat: UploadImage is written
This commit is contained in:
parent
9affe90988
commit
858818c17e
4 changed files with 121 additions and 34 deletions
|
|
@ -18,16 +18,16 @@ import (
|
|||
// }
|
||||
|
||||
type Server struct {
|
||||
db *sqlc.Queries
|
||||
// publisher *rmq.Publisher
|
||||
RPCclient *rmq.RPCClient
|
||||
db *sqlc.Queries
|
||||
ImageServerSocket string
|
||||
RPCclient *rmq.RPCClient
|
||||
}
|
||||
|
||||
func NewServer(db *sqlc.Queries, rpcclient *rmq.RPCClient) *Server {
|
||||
func NewServer(db *sqlc.Queries, ImageServerSocket string, rpcclient *rmq.RPCClient) *Server {
|
||||
return &Server{
|
||||
db: db,
|
||||
// publisher: publisher,
|
||||
RPCclient: rpcclient,
|
||||
db: db,
|
||||
ImageServerSocket: ImageServerSocket,
|
||||
RPCclient: rpcclient,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue