package comm /* 业务模块 对外接口定义处 */ type ( //邮件业务模块对外接口定义 提供给其他模块使用的 Imail interface { CreateNewMail(uId string) } //背包模块对外接口定义 提供给其他模块使用的 IPack interface { //查询用户背包物品数量 QueryUserPackItemAmount(uId string, itemid int32) (amount uint32) ///添加单个物品到背包 (可以加物品和减物品) AddItemToUserPack(uId string, itemid, addnum int32) (err error) ///添加多个物品到背包 (可以加物品和减物品) AddItemsToUserPack(uId string, items map[int32]int32) (err error) } )