商品rpc数据格式及调用方法
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
354 B

  1. package productrpc
  2. import (
  3. "testing"
  4. )
  5. func Test_ProductCommission(t *testing.T) {
  6. commission_rule := "2"
  7. commission_value := "2%"
  8. commission_rate := "35"
  9. product_price := "105"
  10. cost_price := "80"
  11. quantity := "1"
  12. ret := ProductCommission(commission_rule, commission_value, commission_rate, product_price, cost_price, quantity)
  13. t.Log(ret)
  14. }