forked from ebhomengo/niki
Merge branch 'develop' of https://git.gocasts.ir/ebhomengo/niki into develop
This commit is contained in:
commit
031c197715
|
@ -14,4 +14,4 @@ func New(config config.Config) Server {
|
||||||
|
|
||||||
func (s Server) Serve() {
|
func (s Server) Serve() {
|
||||||
|
|
||||||
}
|
}
|
|
@ -7,4 +7,5 @@ type KindBoxAddRequest struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type KindBoxAddResponse struct {
|
type KindBoxAddResponse struct {
|
||||||
|
KindBox entity.KindBox
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package mysqlkindBoxbank
|
package mysqlkindbox
|
||||||
|
|
||||||
import "git.gocasts.ir/ebhomengo/niki/repository/mysql"
|
import "git.gocasts.ir/ebhomengo/niki/repository/mysql"
|
||||||
|
|
||||||
|
@ -10,4 +10,4 @@ func New(conn *mysql.MySQLDB) *DB {
|
||||||
return &DB{
|
return &DB{
|
||||||
conn: conn,
|
conn: conn,
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
package mysqlkindbox
|
|
@ -1 +0,0 @@
|
||||||
package mysqlkindBoxbank
|
|
|
@ -2,6 +2,7 @@ package kindboxservice
|
||||||
|
|
||||||
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box"
|
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box"
|
||||||
|
|
||||||
func (s Service) Delete(kindBoxId param.KindBoxDeleteRequest) error {
|
func (s Service) Delete(param.KindBoxDeleteRequest) error {
|
||||||
|
// some code
|
||||||
panic("not implemented")
|
panic("not implemented")
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,6 @@ package kindboxservice
|
||||||
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box"
|
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box"
|
||||||
|
|
||||||
func (s Service) GetAll() (param.KindBoxGetAllResponse, error) {
|
func (s Service) GetAll() (param.KindBoxGetAllResponse, error) {
|
||||||
|
// some code
|
||||||
panic("not implement")
|
panic("not implement")
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,6 @@ package kindboxservice
|
||||||
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box"
|
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box"
|
||||||
|
|
||||||
func (s Service) GetById(request param.KindBoxGetByIdRequest) (param.KindBoxGetByIdResponse, error) {
|
func (s Service) GetById(request param.KindBoxGetByIdRequest) (param.KindBoxGetByIdResponse, error) {
|
||||||
|
// some code
|
||||||
panic("not implement")
|
panic("not implement")
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s Service) Update(updatedKindBox param.KindBoxUpdateRequest) (param.KindBoxUpdateResponse, error) {
|
func (s Service) Update(updatedKindBox param.KindBoxUpdateRequest) (param.KindBoxUpdateResponse, error) {
|
||||||
|
// some code
|
||||||
panic("not implement")
|
panic("not implement")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package kindboxservice
|
package kindboxreqservice
|
||||||
|
|
||||||
import (
|
import (
|
||||||
param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
package kindboxservice
|
package kindboxreqservice
|
||||||
|
|
||||||
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
||||||
|
|
||||||
func (s Service) Delete(kindBoxReqId param.KindBoxReqDeleteRequest) error {
|
func (s Service) Delete(kindBoxReqId param.KindBoxReqDeleteRequest) error {
|
||||||
|
// some code
|
||||||
panic("not implemented")
|
panic("not implemented")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
package kindboxservice
|
package kindboxreqservice
|
||||||
|
|
||||||
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
||||||
|
|
||||||
func (s Service) GetAll() (param.KindBoxReqGetAllResponse, error) {
|
func (s Service) GetAll() (param.KindBoxReqGetAllResponse, error) {
|
||||||
|
// some code
|
||||||
panic("not implement")
|
panic("not implement")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
package kindboxservice
|
package kindboxreqservice
|
||||||
|
|
||||||
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
import param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
||||||
|
|
||||||
func (s Service) GetById(request param.KindBoxReqGetByIdRequest) (param.KindBoxReqGetByIdResponse, error) {
|
func (s Service) GetById(request param.KindBoxReqGetByIdRequest) (param.KindBoxReqGetByIdResponse, error) {
|
||||||
|
// some code
|
||||||
panic("not implement")
|
panic("not implement")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package kindboxservice
|
package kindboxreqservice
|
||||||
|
|
||||||
import "git.gocasts.ir/ebhomengo/niki/entity"
|
import "git.gocasts.ir/ebhomengo/niki/entity"
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
package kindboxservice
|
package kindboxreqservice
|
||||||
|
|
||||||
import (
|
import (
|
||||||
param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
param "git.gocasts.ir/ebhomengo/niki/param/kind_box_req"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s Service) Update(updatedKindBoxReq param.KindBoxReqUpdateRequest) (param.KindBoxReqUpdateResponse, error) {
|
func (s Service) Update(updatedKindBoxReq param.KindBoxReqUpdateRequest) (param.KindBoxReqUpdateResponse, error) {
|
||||||
|
// some code
|
||||||
panic("not implement")
|
panic("not implement")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue