Documentation ¶
Index ¶
- type Cart
- type Goods
- func (g *Goods) AddStock(goodsId, num int) (e error)
- func (g *Goods) Items(page, pagesize int, tag string) (items []dto.GoodsItemRes, e error)
- func (g *Goods) MarkedTag(goodsId int, tag string) (e error)
- func (g *Goods) New(name string, price int) (e error)
- func (g *Goods) Shop(goodsId, goodsNum, userId int) (e error)
- type Order
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cart ¶
type Cart struct { Runtime freedom.Runtime //运行时,一个请求绑定一个运行时 UserRepo repository.UserRepo //用户仓库 CartRepo repository.CartRepo //购物车仓库 GoodsRepo repository.GoodsRepo //商品仓库 OrderRepo repository.OrderRepo //订单仓库 Transaction transaction.Transaction //事务组件 }
Cart 领域服务.
type Goods ¶
type Goods struct { Runtime freedom.Runtime //运行时,一个请求绑定一个运行时 GoodsRepo repository.GoodsRepo //商品仓库 OrderRepo repository.OrderRepo //订单仓库 UserRepo repository.UserRepo //用户仓库 Transaction transaction.Transaction //事务组件 }
Goods 商品领域服务.
type Order ¶ added in v1.6.1
type Order struct { Runtime freedom.Runtime //运行时,一个请求绑定一个运行时 UserRepo repository.UserRepo //用户仓库 OrderRepo repository.OrderRepo //订单仓库 AdminRepo repository.AdminRepo //管理仓库 DeliveryRepo repository.DeliveryRepo //发货仓库 Transaction transaction.Transaction //事务组件 }
Order 订单领域服务.
func (*Order) Delivery ¶ added in v1.6.5
func (o *Order) Delivery(req dto.DeliveryReq) (e error)
Delivery 管理员发货服务
type User ¶
type User struct { Runtime freedom.Runtime //运行时,一个请求绑定一个运行时 UserRepo repository.UserRepo //用户仓库 }
User 用户领域服务.
func (*User) ChangePassword ¶
ChangePassword 修改密码
func (*User) Register ¶
func (s *User) Register(user dto.RegisterUserReq) (result dto.UserInfoRes, e error)
Register .
Directories ¶
Path | Synopsis |
---|---|
Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud'
|
Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' Code generated by 'freedom new-crud' |
Click to show internal directories.
Click to hide internal directories.