|
@@ -26,13 +26,22 @@ type ResourcePack struct {
|
|
|
}
|
|
|
|
|
|
const (
|
|
|
- METHOD = "GET"
|
|
|
+ METHOD = "POST"
|
|
|
)
|
|
|
|
|
|
func (this *ResourcePack) Tes() {
|
|
|
- r := entity.JyresoucePack.LastDate(time.Now())
|
|
|
- log.Println(r)
|
|
|
- this.ServeJson("nihao")
|
|
|
+ userId := qu.ObjToString(this.GetSession("userId"))
|
|
|
+ a, b, c := entity.InitFindRecord(userId, entity.ATTACHMENT, "2022-01", 10, 1, 0).FindBalance()
|
|
|
+ this.ServeJson(map[string]interface{}{
|
|
|
+ "a": a,
|
|
|
+ "b": b,
|
|
|
+ "c": c,
|
|
|
+ })
|
|
|
+ //
|
|
|
+ qwewqe := []string{}
|
|
|
+ q := entity.InitUseBalance(userId, entity.ATTACHMENT, entity.ATTACHMENT, "", "", qwewqe, map[string]interface{}{"remark": 1}, 1)
|
|
|
+ r, errss := q.UseBalance()
|
|
|
+ log.Println(r, errss)
|
|
|
}
|
|
|
|
|
|
type OrderResult struct {
|